Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const MIN_EMBED_BATCH_SIZE = 5;
const MAX_EMBED_BATCH_SIZE = 10;
const DEFAULT_EMBED_BATCH_SIZE = 8;

const ollama = new Ollama();
const ollama = new Ollama({ host: process.env.OLLAMA_HOST });

function toIntegerOr(value: string | undefined, fallback: number): number {
if (!value) return fallback;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/semantic-navigate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const EMBED_MODEL = process.env.OLLAMA_EMBED_MODEL ?? "nomic-embed-text";
const CHAT_MODEL = process.env.OLLAMA_CHAT_MODEL ?? "llama3.2";
const MAX_FILES_PER_LEAF = 20;

const ollama = new Ollama();
const ollama = new Ollama({ host: process.env.OLLAMA_HOST });

async function fetchEmbeddings(inputs: string[]): Promise<number[][]> {
return fetchEmbedding(inputs);
Expand Down