@ai-sdk/openai
Advanced tools
Comparing version 0.0.58 to 0.0.59
@@ -299,2 +299,8 @@ "use strict"; | ||
}; | ||
if (this.modelId === "o1-preview" || this.modelId === "o1-mini") { | ||
baseArgs.temperature = 1; | ||
baseArgs.top_p = 1; | ||
baseArgs.frequency_penalty = 0; | ||
baseArgs.presence_penalty = 0; | ||
} | ||
switch (type) { | ||
@@ -301,0 +307,0 @@ case "regular": { |
# @ai-sdk/openai | ||
## 0.0.59 | ||
### Patch Changes | ||
- a0991ec: feat (provider/openai): add o1-preview and o1-mini models | ||
## 0.0.58 | ||
@@ -4,0 +10,0 @@ |
import { LanguageModelV1, ProviderV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
import { FetchFunction } from '@ai-sdk/provider-utils'; | ||
type OpenAIChatModelId = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo-preview' | 'gpt-4-0125-preview' | 'gpt-4-1106-preview' | 'gpt-4' | 'gpt-4-0613' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | (string & {}); | ||
type OpenAIChatModelId = 'o1-preview' | 'o1-mini' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo-preview' | 'gpt-4-0125-preview' | 'gpt-4-1106-preview' | 'gpt-4' | 'gpt-4-0613' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | (string & {}); | ||
interface OpenAIChatSettings { | ||
@@ -6,0 +6,0 @@ /** |
@@ -299,2 +299,8 @@ "use strict"; | ||
}; | ||
if (this.modelId === "o1-preview" || this.modelId === "o1-mini") { | ||
baseArgs.temperature = 1; | ||
baseArgs.top_p = 1; | ||
baseArgs.frequency_penalty = 0; | ||
baseArgs.presence_penalty = 0; | ||
} | ||
switch (type) { | ||
@@ -301,0 +307,0 @@ case "regular": { |
import { LanguageModelV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
import { FetchFunction } from '@ai-sdk/provider-utils'; | ||
type OpenAIChatModelId = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo-preview' | 'gpt-4-0125-preview' | 'gpt-4-1106-preview' | 'gpt-4' | 'gpt-4-0613' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | (string & {}); | ||
type OpenAIChatModelId = 'o1-preview' | 'o1-mini' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo-preview' | 'gpt-4-0125-preview' | 'gpt-4-1106-preview' | 'gpt-4' | 'gpt-4-0613' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | (string & {}); | ||
interface OpenAIChatSettings { | ||
@@ -6,0 +6,0 @@ /** |
@@ -296,2 +296,8 @@ "use strict"; | ||
}; | ||
if (this.modelId === "o1-preview" || this.modelId === "o1-mini") { | ||
baseArgs.temperature = 1; | ||
baseArgs.top_p = 1; | ||
baseArgs.frequency_penalty = 0; | ||
baseArgs.presence_penalty = 0; | ||
} | ||
switch (type) { | ||
@@ -298,0 +304,0 @@ case "regular": { |
{ | ||
"name": "@ai-sdk/openai", | ||
"version": "0.0.58", | ||
"version": "0.0.59", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
578049
6808