From bb1e7a4a34685bf6068ee56c15aba6a4797ee9d7 Mon Sep 17 00:00:00 2001 From: Piotr Karwatka Date: Mon, 16 Dec 2024 10:53:52 +0100 Subject: [PATCH] fix: merge error fixed --- .../framework/src/providers/openai_response_functions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/framework/src/providers/openai_response_functions.ts b/packages/framework/src/providers/openai_response_functions.ts index 5358b0b..ad6b786 100644 --- a/packages/framework/src/providers/openai_response_functions.ts +++ b/packages/framework/src/providers/openai_response_functions.ts @@ -1,6 +1,6 @@ import { randomUUID } from 'node:crypto' -import OpenAI from 'openai' +import OpenAI, { ClientOptions } from 'openai' import { Provider, responseAsToolCall, toLLMTools } from '../models.js' import { OpenAIProviderOptions as BaseOpenAIProviderOptions } from './openai.js' @@ -8,7 +8,7 @@ import { OpenAIProviderOptions as BaseOpenAIProviderOptions } from './openai.js' /** * Required options for the OpenAI-compatible provider. */ -export type OpenAIProviderOptions = BaseOpenAIProviderOptions & +export type OpenAIProviderOptions = BaseOpenAIProviderOptions & { /** * Since this is meant to be used with OpenAI-compatible providers, * we do not provide any defaults. @@ -44,7 +44,7 @@ export const openai = (options: OpenAIProviderOptions): Provider => { tools: [...tools, ...responseAsToolCall(response_format, strictMode)], messages, temperature, - tool_choice: 'required' + tool_choice: 'required', }) /**