Skip to content

Commit

Permalink
Merge pull request #474 from drew-royster/fix/ollama-generation-use-e…
Browse files Browse the repository at this point in the history
…liza-logger

ollama generate case was using console.debug.
  • Loading branch information
lalalune authored Nov 21, 2024
2 parents a1519b2 + aa4f83d commit 9bd13c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,14 @@ export async function generateText({

case ModelProviderName.OLLAMA:
{
console.debug("Initializing Ollama model.");
elizaLogger.debug("Initializing Ollama model.");

const ollamaProvider = createOllama({
baseURL: models[provider].endpoint + "/api",
});
const ollama = ollamaProvider(model);

console.debug("****** MODEL\n", model);
elizaLogger.debug("****** MODEL\n", model);

const { text: ollamaResponse } = await aiGenerateText({
model: ollama,
Expand All @@ -334,7 +334,7 @@ export async function generateText({

response = ollamaResponse;
}
console.debug("Received response from Ollama model.");
elizaLogger.debug("Received response from Ollama model.");
break;

case ModelProviderName.HEURIST: {
Expand Down

0 comments on commit 9bd13c6

Please sign in to comment.