Skip to content

Commit

Permalink
feat: Remove deprecated OpenAI instance id (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz authored Mar 29, 2024
1 parent f296eef commit 5293933
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ class ChatOpenAI extends BaseChatModel<ChatOpenAIOptions> {
functionCall: functionCall,
frequencyPenalty:
options?.frequencyPenalty ?? defaultOptions.frequencyPenalty,
instanceId: options?.instanceId ?? defaultOptions.instanceId,
logitBias: options?.logitBias ?? defaultOptions.logitBias,
maxTokens: options?.maxTokens ?? defaultOptions.maxTokens,
n: options?.n ?? defaultOptions.n,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class ChatOpenAIOptions extends ChatModelOptions {
const ChatOpenAIOptions({
this.model = 'gpt-3.5-turbo',
this.frequencyPenalty,
this.instanceId,
this.logitBias,
this.maxTokens,
this.n,
Expand Down Expand Up @@ -54,10 +53,6 @@ class ChatOpenAIOptions extends ChatModelOptions {
/// See https://platform.openai.com/docs/api-reference/chat/create#chat-create-frequency_penalty
final double? frequencyPenalty;

/// An unique identifier to a custom instance to execute the request.
/// The requesting organization is required to have access to the instance.
final String? instanceId;

/// Modify the likelihood of specified tokens appearing in the completion.
///
/// See https://platform.openai.com/docs/api-reference/chat/create#chat-create-logit_bias
Expand Down

0 comments on commit 5293933

Please sign in to comment.