@ai-sdk/openai 2.1.0-beta.3 → 2.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +4 -4
- package/dist/internal/index.d.ts +4 -4
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 2.1.0-beta.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ed329cb: feat: `Provider-V3`
|
|
8
|
+
- 522f6b8: feat: `ImageModelV3`
|
|
9
|
+
- Updated dependencies [ed329cb]
|
|
10
|
+
- Updated dependencies [522f6b8]
|
|
11
|
+
- @ai-sdk/provider@2.1.0-beta.2
|
|
12
|
+
- @ai-sdk/provider-utils@3.1.0-beta.3
|
|
13
|
+
|
|
3
14
|
## 2.1.0-beta.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProviderV3, LanguageModelV2, EmbeddingModelV3, ImageModelV3, TranscriptionModelV2, SpeechModelV2 } from '@ai-sdk/provider';
|
|
2
2
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
3
3
|
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
4
4
|
import { z } from 'zod/v4';
|
|
@@ -244,7 +244,7 @@ type OpenAISpeechModelId = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts' | (string &
|
|
|
244
244
|
|
|
245
245
|
type OpenAITranscriptionModelId = 'whisper-1' | 'gpt-4o-mini-transcribe' | 'gpt-4o-transcribe' | (string & {});
|
|
246
246
|
|
|
247
|
-
interface OpenAIProvider extends
|
|
247
|
+
interface OpenAIProvider extends ProviderV3 {
|
|
248
248
|
(modelId: OpenAIResponsesModelId): LanguageModelV2;
|
|
249
249
|
/**
|
|
250
250
|
Creates an OpenAI model for text generation.
|
|
@@ -277,11 +277,11 @@ interface OpenAIProvider extends ProviderV2 {
|
|
|
277
277
|
/**
|
|
278
278
|
Creates a model for image generation.
|
|
279
279
|
*/
|
|
280
|
-
image(modelId: OpenAIImageModelId):
|
|
280
|
+
image(modelId: OpenAIImageModelId): ImageModelV3;
|
|
281
281
|
/**
|
|
282
282
|
Creates a model for image generation.
|
|
283
283
|
*/
|
|
284
|
-
imageModel(modelId: OpenAIImageModelId):
|
|
284
|
+
imageModel(modelId: OpenAIImageModelId): ImageModelV3;
|
|
285
285
|
/**
|
|
286
286
|
Creates a model for transcription.
|
|
287
287
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProviderV3, LanguageModelV2, EmbeddingModelV3, ImageModelV3, TranscriptionModelV2, SpeechModelV2 } from '@ai-sdk/provider';
|
|
2
2
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
3
3
|
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
4
4
|
import { z } from 'zod/v4';
|
|
@@ -244,7 +244,7 @@ type OpenAISpeechModelId = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts' | (string &
|
|
|
244
244
|
|
|
245
245
|
type OpenAITranscriptionModelId = 'whisper-1' | 'gpt-4o-mini-transcribe' | 'gpt-4o-transcribe' | (string & {});
|
|
246
246
|
|
|
247
|
-
interface OpenAIProvider extends
|
|
247
|
+
interface OpenAIProvider extends ProviderV3 {
|
|
248
248
|
(modelId: OpenAIResponsesModelId): LanguageModelV2;
|
|
249
249
|
/**
|
|
250
250
|
Creates an OpenAI model for text generation.
|
|
@@ -277,11 +277,11 @@ interface OpenAIProvider extends ProviderV2 {
|
|
|
277
277
|
/**
|
|
278
278
|
Creates a model for image generation.
|
|
279
279
|
*/
|
|
280
|
-
image(modelId: OpenAIImageModelId):
|
|
280
|
+
image(modelId: OpenAIImageModelId): ImageModelV3;
|
|
281
281
|
/**
|
|
282
282
|
Creates a model for image generation.
|
|
283
283
|
*/
|
|
284
|
-
imageModel(modelId: OpenAIImageModelId):
|
|
284
|
+
imageModel(modelId: OpenAIImageModelId): ImageModelV3;
|
|
285
285
|
/**
|
|
286
286
|
Creates a model for transcription.
|
|
287
287
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1599,7 +1599,7 @@ var OpenAIImageModel = class {
|
|
|
1599
1599
|
constructor(modelId, config) {
|
|
1600
1600
|
this.modelId = modelId;
|
|
1601
1601
|
this.config = config;
|
|
1602
|
-
this.specificationVersion = "
|
|
1602
|
+
this.specificationVersion = "v3";
|
|
1603
1603
|
}
|
|
1604
1604
|
get maxImagesPerCall() {
|
|
1605
1605
|
var _a;
|
|
@@ -3870,7 +3870,7 @@ var openaiTranscriptionResponseSchema = import_v418.z.object({
|
|
|
3870
3870
|
});
|
|
3871
3871
|
|
|
3872
3872
|
// src/version.ts
|
|
3873
|
-
var VERSION = true ? "2.1.0-beta.
|
|
3873
|
+
var VERSION = true ? "2.1.0-beta.4" : "0.0.0-test";
|
|
3874
3874
|
|
|
3875
3875
|
// src/openai-provider.ts
|
|
3876
3876
|
function createOpenAI(options = {}) {
|