Skip to content

Commit

Permalink
fix: cohere message parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Nov 17, 2024
1 parent 55b3188 commit 13a2e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/constants/APIState/CohereAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CohereAPI extends APIBase {
'https://api.cohere.com/v1/chat',
JSON.stringify(this.buildPayload()),
(item) => {
return item
return JSON.parse(item).text
},
() => {},
{ Authorization: `Bearer ${this.getString(Global.CohereKey)}` }
Expand Down

0 comments on commit 13a2e23

Please sign in to comment.