Skip to content

Commit

Permalink
šŸ› fix: Baichuan should not introduce freequency_penality parameters (ā€¦
Browse files Browse the repository at this point in the history
ā€¦lobehub#3871)

* Update index.ts

* Update index.ts
  • Loading branch information
sxjeru authored Sep 10, 2024
1 parent c7fde14 commit 66a061e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/agent-runtime/baichuan/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export const LobeBaichuanAI = LobeOpenAICompatibleFactory({

return {
...rest,
// [baichuan] frequency_penalty must be between 1 and 2.
frequency_penalty: undefined,
temperature:
temperature !== undefined
? temperature / 2
Expand Down

0 comments on commit 66a061e

Please sign in to comment.