@ -230,7 +230,7 @@ export const createChatCompletion = createAction({
|
||||
? Number(options.temperature)
|
||||
: undefined,
|
||||
messages,
|
||||
tools,
|
||||
tools: (tools?.length ?? 0) > 0 ? tools : undefined,
|
||||
}
|
||||
|
||||
let totalTokens = 0
|
||||
@ -329,7 +329,7 @@ export const createChatCompletion = createAction({
|
||||
: undefined,
|
||||
stream: true,
|
||||
messages,
|
||||
tools,
|
||||
tools: (tools?.length ?? 0) > 0 ? tools : undefined,
|
||||
})
|
||||
|
||||
return OpenAIStream(response, {
|
||||
|
@ -7,8 +7,8 @@
|
||||
"author": "Baptiste Arnaud",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"ai": "2.2.31",
|
||||
"openai": "4.24.1"
|
||||
"ai": "2.2.33",
|
||||
"openai": "4.26.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typebot.io/forge": "workspace:*",
|
||||
|
Reference in New Issue
Block a user