@ai-sdk/google
Advanced tools
Comparing version 1.0.0-canary.0 to 1.0.0-canary.1
@@ -659,7 +659,7 @@ "use strict"; | ||
constructor(options = {}) { | ||
var _a, _b, _c; | ||
this.baseURL = (_b = (0, import_provider_utils4.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://generativelanguage.googleapis.com/v1beta"; | ||
var _a, _b; | ||
this.baseURL = (_a = (0, import_provider_utils4.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://generativelanguage.googleapis.com/v1beta"; | ||
this.apiKey = options.apiKey; | ||
this.headers = options.headers; | ||
this.generateId = (_c = options.generateId) != null ? _c : import_provider_utils4.generateId; | ||
this.generateId = (_b = options.generateId) != null ? _b : import_provider_utils4.generateId; | ||
} | ||
@@ -760,4 +760,4 @@ get baseConfig() { | ||
function createGoogleGenerativeAI(options = {}) { | ||
var _a, _b; | ||
const baseURL = (_b = (0, import_provider_utils6.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://generativelanguage.googleapis.com/v1beta"; | ||
var _a; | ||
const baseURL = (_a = (0, import_provider_utils6.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://generativelanguage.googleapis.com/v1beta"; | ||
const getHeaders = () => ({ | ||
@@ -764,0 +764,0 @@ "x-goog-api-key": (0, import_provider_utils6.loadApiKey)({ |
# @ai-sdk/google | ||
## 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 @@ |
@@ -97,6 +97,2 @@ import { LanguageModelV1, ProviderV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
/** | ||
@deprecated Use `baseURL` instead. | ||
*/ | ||
baseUrl?: string; | ||
/** | ||
API key that is being send using the `x-goog-api-key` header. | ||
@@ -103,0 +99,0 @@ It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable. |
@@ -659,7 +659,7 @@ "use strict"; | ||
constructor(options = {}) { | ||
var _a, _b, _c; | ||
this.baseURL = (_b = (0, import_provider_utils4.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://generativelanguage.googleapis.com/v1beta"; | ||
var _a, _b; | ||
this.baseURL = (_a = (0, import_provider_utils4.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://generativelanguage.googleapis.com/v1beta"; | ||
this.apiKey = options.apiKey; | ||
this.headers = options.headers; | ||
this.generateId = (_c = options.generateId) != null ? _c : import_provider_utils4.generateId; | ||
this.generateId = (_b = options.generateId) != null ? _b : import_provider_utils4.generateId; | ||
} | ||
@@ -760,4 +760,4 @@ get baseConfig() { | ||
function createGoogleGenerativeAI(options = {}) { | ||
var _a, _b; | ||
const baseURL = (_b = (0, import_provider_utils6.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://generativelanguage.googleapis.com/v1beta"; | ||
var _a; | ||
const baseURL = (_a = (0, import_provider_utils6.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://generativelanguage.googleapis.com/v1beta"; | ||
const getHeaders = () => ({ | ||
@@ -764,0 +764,0 @@ "x-goog-api-key": (0, import_provider_utils6.loadApiKey)({ |
{ | ||
"name": "@ai-sdk/google", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197738
2511
+ Added@ai-sdk/provider-utils@2.0.0-canary.1(transitive)
- Removed@ai-sdk/provider-utils@2.0.0-canary.0(transitive)