@ai-sdk/openai 2.1.0-beta.8 → 2.1.0-beta.9
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 +6 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -4074,12 +4074,17 @@ var openaiTranscriptionResponseSchema = import_v419.z.object({
|
|
|
4074
4074
|
});
|
|
4075
4075
|
|
|
4076
4076
|
// src/version.ts
|
|
4077
|
-
var VERSION = true ? "2.1.0-beta.
|
|
4077
|
+
var VERSION = true ? "2.1.0-beta.9" : "0.0.0-test";
|
|
4078
4078
|
|
|
4079
4079
|
// src/openai-provider.ts
|
|
4080
4080
|
function createOpenAI(options = {}) {
|
|
4081
4081
|
var _a, _b;
|
|
4082
|
-
const baseURL = (_a = (0, import_provider_utils17.withoutTrailingSlash)(
|
|
4082
|
+
const baseURL = (_a = (0, import_provider_utils17.withoutTrailingSlash)(
|
|
4083
|
+
(0, import_provider_utils17.loadOptionalSetting)({
|
|
4084
|
+
settingValue: options.baseURL,
|
|
4085
|
+
environmentVariableName: "OPENAI_BASE_URL"
|
|
4086
|
+
})
|
|
4087
|
+
)) != null ? _a : "https://api.openai.com/v1";
|
|
4083
4088
|
const providerName = (_b = options.name) != null ? _b : "openai";
|
|
4084
4089
|
const getHeaders = () => (0, import_provider_utils17.withUserAgentSuffix)(
|
|
4085
4090
|
{
|