mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-01-12 08:55:48 +00:00
Compare commits
1 Commits
v1.12.0
...
55a4b9d436
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55a4b9d436 |
@@ -167,7 +167,7 @@ class OpenAILLM extends BaseLLM<OpenAIConfig> {
|
|||||||
contentChunk: chunk.choices[0].delta.content || '',
|
contentChunk: chunk.choices[0].delta.content || '',
|
||||||
toolCallChunk:
|
toolCallChunk:
|
||||||
toolCalls?.map((tc) => {
|
toolCalls?.map((tc) => {
|
||||||
if (tc.type === 'function') {
|
if (!recievedToolCalls[tc.index]) {
|
||||||
const call = {
|
const call = {
|
||||||
name: tc.function?.name!,
|
name: tc.function?.name!,
|
||||||
id: tc.id!,
|
id: tc.id!,
|
||||||
|
|||||||
Reference in New Issue
Block a user