Skip to content

Commit

Permalink
feat(llm): set temperature to 0 for OpenAI LLM adapter
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <[email protected]>
  • Loading branch information
Tomas2D committed Nov 5, 2024
1 parent aabfe04 commit ea84808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/openai/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class OpenAIChatLLM extends ChatLLM<OpenAIChatLLMOutput> {
}: Input = {}) {
super(modelId, executionOptions, cache);
this.client = client ?? new Client();
this.parameters = parameters ?? {};
this.parameters = parameters ?? { temperature: 0 };
}

static {
Expand Down

0 comments on commit ea84808

Please sign in to comment.