mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: add end-user info on OpenAI Responses API call (#12134)
Add end-user info on OpenAI Responses API call
This commit is contained in:
@@ -907,6 +907,7 @@ export const createOpenAICompatibleRuntime = <T extends Record<string, any> = an
|
||||
store: false,
|
||||
stream: !isStreaming ? undefined : isStreaming,
|
||||
tools: tools?.map((tool) => this.convertChatCompletionToolToResponseTool(tool)),
|
||||
user: options?.user,
|
||||
} as OpenAI.Responses.ResponseCreateParamsStreaming | OpenAI.Responses.ResponseCreateParams;
|
||||
|
||||
if (debugParams?.responses?.()) {
|
||||
|
||||
Reference in New Issue
Block a user