Skip to content

Commit

Permalink
Fix Cohere API bot model paramater, fix #803
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored and sunner committed Jun 1, 2024
1 parent aa6173c commit a4e79f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bots/cohere/CohereAPIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class CohereAPIBot extends LangChainBot {
_setupModel() {
const chatModel = new ChatCohere({
apiKey: store.state.cohereApi.apiKey,
modelName: this.constructor._model ? this.constructor._model : "",
model: this.constructor._model ? this.constructor._model : "",
streaming: true,
temperature: store.state.cohereApi.temperature,
});
Expand Down

0 comments on commit a4e79f9

Please sign in to comment.