@ai-sdk/mistral
Advanced tools
Comparing version 1.0.0-canary.0 to 1.0.0-canary.1
@@ -528,4 +528,4 @@ "use strict"; | ||
constructor(options = {}) { | ||
var _a, _b; | ||
this.baseURL = (_b = (0, import_provider_utils4.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://api.mistral.ai/v1"; | ||
var _a; | ||
this.baseURL = (_a = (0, import_provider_utils4.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://api.mistral.ai/v1"; | ||
this.apiKey = options.apiKey; | ||
@@ -622,4 +622,4 @@ this.headers = options.headers; | ||
function createMistral(options = {}) { | ||
var _a, _b; | ||
const baseURL = (_b = (0, import_provider_utils6.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://api.mistral.ai/v1"; | ||
var _a; | ||
const baseURL = (_a = (0, import_provider_utils6.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://api.mistral.ai/v1"; | ||
const getHeaders = () => ({ | ||
@@ -626,0 +626,0 @@ Authorization: `Bearer ${(0, import_provider_utils6.loadApiKey)({ |
# @ai-sdk/mistral | ||
## 1.0.0-canary.1 | ||
### Major Changes | ||
- 0d3d3f5: chore (providers): remove baseUrl option | ||
### Patch Changes | ||
- Updated dependencies [b1da952] | ||
- @ai-sdk/provider-utils@2.0.0-canary.1 | ||
## 1.0.0-canary.0 | ||
@@ -4,0 +15,0 @@ |
@@ -73,6 +73,2 @@ import { LanguageModelV1, ProviderV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
/** | ||
@deprecated Use `baseURL` instead. | ||
*/ | ||
baseUrl?: string; | ||
/** | ||
API key that is being send using the `Authorization` header. | ||
@@ -79,0 +75,0 @@ It defaults to the `MISTRAL_API_KEY` environment variable. |
@@ -528,4 +528,4 @@ "use strict"; | ||
constructor(options = {}) { | ||
var _a, _b; | ||
this.baseURL = (_b = (0, import_provider_utils4.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://api.mistral.ai/v1"; | ||
var _a; | ||
this.baseURL = (_a = (0, import_provider_utils4.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://api.mistral.ai/v1"; | ||
this.apiKey = options.apiKey; | ||
@@ -622,4 +622,4 @@ this.headers = options.headers; | ||
function createMistral(options = {}) { | ||
var _a, _b; | ||
const baseURL = (_b = (0, import_provider_utils6.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://api.mistral.ai/v1"; | ||
var _a; | ||
const baseURL = (_a = (0, import_provider_utils6.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://api.mistral.ai/v1"; | ||
const getHeaders = () => ({ | ||
@@ -626,0 +626,0 @@ Authorization: `Bearer ${(0, import_provider_utils6.loadApiKey)({ |
{ | ||
"name": "@ai-sdk/mistral", | ||
"version": "1.0.0-canary.0", | ||
"version": "1.0.0-canary.1", | ||
"license": "Apache-2.0", | ||
@@ -23,3 +23,3 @@ "sideEffects": false, | ||
"@ai-sdk/provider": "1.0.0-canary.0", | ||
"@ai-sdk/provider-utils": "2.0.0-canary.0" | ||
"@ai-sdk/provider-utils": "2.0.0-canary.1" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
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
163281
2051
+ Added@ai-sdk/provider-utils@2.0.0-canary.1(transitive)
- Removed@ai-sdk/provider-utils@2.0.0-canary.0(transitive)