diff --git a/src/libs/agent-runtime/github/index.ts b/src/libs/agent-runtime/github/index.ts index fd7fa6f280bc..2612bc6fe697 100644 --- a/src/libs/agent-runtime/github/index.ts +++ b/src/libs/agent-runtime/github/index.ts @@ -10,7 +10,7 @@ export const LobeGithubAI = LobeOpenAICompatibleFactory({ const { model } = payload; if (o1Models.has(model)) { - return pruneO1Payload(payload) as any; + return { ...pruneO1Payload(payload), stream: false } as any; } return { ...payload, stream: payload.stream ?? true }; diff --git a/src/libs/agent-runtime/openai/index.ts b/src/libs/agent-runtime/openai/index.ts index d4d718df4b49..9c42965cce07 100644 --- a/src/libs/agent-runtime/openai/index.ts +++ b/src/libs/agent-runtime/openai/index.ts @@ -17,7 +17,6 @@ export const pruneO1Payload = (payload: ChatStreamPayload) => ({ role: message.role === 'system' ? 'user' : message.role, })), presence_penalty: 0, - stream: false, temperature: 1, top_p: 1, });