Skip to content

Commit 88e062f

Browse files
authored
Fix: Cohere Endpoint - Add Support for Tools (#1490)
* fix(endpointCohere): Added force_single_step param to chatStream call * refactor(endpointCohere): change force_single_step parameter to forceSingleStep for linting
1 parent 7be4d8a commit 88e062f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/server/endpoints/cohere/endpointCohere.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export async function endpointCohere(
6262
});
6363

6464
stream = await cohere.chatStream({
65+
forceSingleStep: true,
6566
message: prompt,
6667
rawPrompting: true,
6768
model: model.id ?? model.name,
@@ -82,6 +83,7 @@ export async function endpointCohere(
8283

8384
stream = await cohere
8485
.chatStream({
86+
forceSingleStep: true,
8587
model: model.id ?? model.name,
8688
chatHistory: formattedMessages.slice(0, -1),
8789
message: formattedMessages[formattedMessages.length - 1].message,

0 commit comments

Comments
 (0)