MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / getPipeTinyLlama

Function getPipeTinyLlama

examples/nextjs/baseai/pipes/local-llm.ts:3–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import {PipeI} from '@baseai/core';
2
3const getPipeTinyLlama = (): PipeI => ({
4 apiKey: process.env.LANGBASE_API_KEY, // Replace with your API key https://langbase.com/docs/api-reference/api-keys
5 name: 'local-llm',
6 description: 'A pipe that calls local llm using ollama',
7 status: 'public',
8 // About a 1GB.
9 // model: 'ollama:tinyllama',
10 // About a 10Mb.
11 model: 'ollama:ben1t0/tiny-llm',
12 stream: true,
13 json: false,
14 store: true,
15 moderate: true,
16 top_p: 1,
17 max_tokens: 1000,
18 temperature: 0.7,
19 presence_penalty: 1,
20 frequency_penalty: 1,
21 stop: [],
22 tool_choice: 'auto',
23 parallel_tool_calls: false,
24 messages: [
25 {
26 role: 'system',
27 content: `You are a helpful AI assistant. Less wordy.`,
28 },
29 ],
30 variables: [],
31 memory: [],
32 tools: [],
33});
34
35export default getPipeTinyLlama;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected