@ai-sdk/google
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -253,3 +253,3 @@ "use strict"; | ||
const { args, warnings } = this.getArgs(options); | ||
const response = await (0, import_provider_utils3.postJsonToApi)({ | ||
const { responseHeaders, value: response } = await (0, import_provider_utils3.postJsonToApi)({ | ||
url: `${this.config.baseURL}/${this.modelId}:generateContent`, | ||
@@ -280,2 +280,3 @@ headers: this.config.headers(), | ||
rawCall: { rawPrompt, rawSettings }, | ||
rawResponse: { headers: responseHeaders }, | ||
warnings | ||
@@ -286,3 +287,3 @@ }; | ||
const { args, warnings } = this.getArgs(options); | ||
const response = await (0, import_provider_utils3.postJsonToApi)({ | ||
const { responseHeaders, value: response } = await (0, import_provider_utils3.postJsonToApi)({ | ||
url: `${this.config.baseURL}/${this.modelId}:streamGenerateContent?alt=sse`, | ||
@@ -366,2 +367,3 @@ headers: this.config.headers(), | ||
rawCall: { rawPrompt, rawSettings }, | ||
rawResponse: { headers: responseHeaders }, | ||
warnings | ||
@@ -368,0 +370,0 @@ }; |
@@ -253,3 +253,3 @@ "use strict"; | ||
const { args, warnings } = this.getArgs(options); | ||
const response = await (0, import_provider_utils3.postJsonToApi)({ | ||
const { responseHeaders, value: response } = await (0, import_provider_utils3.postJsonToApi)({ | ||
url: `${this.config.baseURL}/${this.modelId}:generateContent`, | ||
@@ -280,2 +280,3 @@ headers: this.config.headers(), | ||
rawCall: { rawPrompt, rawSettings }, | ||
rawResponse: { headers: responseHeaders }, | ||
warnings | ||
@@ -286,3 +287,3 @@ }; | ||
const { args, warnings } = this.getArgs(options); | ||
const response = await (0, import_provider_utils3.postJsonToApi)({ | ||
const { responseHeaders, value: response } = await (0, import_provider_utils3.postJsonToApi)({ | ||
url: `${this.config.baseURL}/${this.modelId}:streamGenerateContent?alt=sse`, | ||
@@ -366,2 +367,3 @@ headers: this.config.headers(), | ||
rawCall: { rawPrompt, rawSettings }, | ||
rawResponse: { headers: responseHeaders }, | ||
warnings | ||
@@ -368,0 +370,0 @@ }; |
{ | ||
"name": "@ai-sdk/google", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "Apache-2.0", | ||
@@ -21,4 +21,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@ai-sdk/provider": "0.0.1", | ||
"@ai-sdk/provider-utils": "0.0.2" | ||
"@ai-sdk/provider": "0.0.2", | ||
"@ai-sdk/provider-utils": "0.0.3" | ||
}, | ||
@@ -25,0 +25,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
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
111324
1536
+ Added@ai-sdk/provider@0.0.2(transitive)
+ Added@ai-sdk/provider-utils@0.0.3(transitive)
- Removed@ai-sdk/provider@0.0.1(transitive)
- Removed@ai-sdk/provider-utils@0.0.2(transitive)
Updated@ai-sdk/provider@0.0.2
Updated@ai-sdk/provider-utils@0.0.3