Skip to content

Commit

Permalink
fix: merge error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarw committed Dec 16, 2024
1 parent 1cd5cd6 commit bb1e7a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/framework/src/providers/openai_response_functions.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
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'

/**
* 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.
Expand Down Expand Up @@ -44,7 +44,7 @@ export const openai = (options: OpenAIProviderOptions): Provider => {
tools: [...tools, ...responseAsToolCall(response_format, strictMode)],
messages,
temperature,
tool_choice: 'required'
tool_choice: 'required',
})

/**
Expand Down

0 comments on commit bb1e7a4

Please sign in to comment.