Skip to content

Commit

Permalink
feat(llm): set default parameters for ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Sep 18, 2024
1 parent 7db2835 commit 0eecb65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/adapters/ollama/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ export class OllamaChatLLM extends ChatLLM<OllamaChatLLMOutput> {
public readonly parameters: Partial<Parameters>;

constructor(
{ client, modelId, parameters, executionOptions = {} }: Input = {
{
client,
modelId = "llama3.1",
parameters = { temperature: 0 },
executionOptions = {},
}: Input = {
modelId: "llama3.1",
parameters: {
temperature: 0,
Expand Down

0 comments on commit 0eecb65

Please sign in to comment.