@ai-sdk/google
Advanced tools
Comparing version 0.0.51 to 0.0.52
@@ -284,14 +284,2 @@ "use strict"; | ||
const warnings = []; | ||
if (frequencyPenalty != null) { | ||
warnings.push({ | ||
type: "unsupported-setting", | ||
setting: "frequencyPenalty" | ||
}); | ||
} | ||
if (presencePenalty != null) { | ||
warnings.push({ | ||
type: "unsupported-setting", | ||
setting: "presencePenalty" | ||
}); | ||
} | ||
if (seed != null) { | ||
@@ -304,8 +292,9 @@ warnings.push({ | ||
const generationConfig = { | ||
// model specific settings: | ||
topK: topK != null ? topK : this.settings.topK, | ||
// standardized settings: | ||
maxOutputTokens: maxTokens, | ||
temperature, | ||
topK: topK != null ? topK : this.settings.topK, | ||
topP, | ||
frequencyPenalty, | ||
presencePenalty, | ||
stopSequences, | ||
@@ -312,0 +301,0 @@ // response format: |
# @ai-sdk/google | ||
## 0.0.52 | ||
### Patch Changes | ||
- 7944e61: feat (provider/google): enable frequencyPenalty and presencePenalty settings | ||
## 0.0.51 | ||
@@ -4,0 +10,0 @@ |
@@ -284,14 +284,2 @@ "use strict"; | ||
const warnings = []; | ||
if (frequencyPenalty != null) { | ||
warnings.push({ | ||
type: "unsupported-setting", | ||
setting: "frequencyPenalty" | ||
}); | ||
} | ||
if (presencePenalty != null) { | ||
warnings.push({ | ||
type: "unsupported-setting", | ||
setting: "presencePenalty" | ||
}); | ||
} | ||
if (seed != null) { | ||
@@ -304,8 +292,9 @@ warnings.push({ | ||
const generationConfig = { | ||
// model specific settings: | ||
topK: topK != null ? topK : this.settings.topK, | ||
// standardized settings: | ||
maxOutputTokens: maxTokens, | ||
temperature, | ||
topK: topK != null ? topK : this.settings.topK, | ||
topP, | ||
frequencyPenalty, | ||
presencePenalty, | ||
stopSequences, | ||
@@ -312,0 +301,0 @@ // response format: |
{ | ||
"name": "@ai-sdk/google", | ||
"version": "0.0.51", | ||
"version": "0.0.52", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
186020
2383