@ai-sdk/anthropic
Advanced tools
Comparing version 1.0.0-canary.3 to 1.0.0-canary.4
@@ -470,8 +470,7 @@ "use strict"; | ||
model: this.modelId, | ||
// model specific settings: | ||
top_k: topK != null ? topK : this.settings.topK, | ||
// standardized settings: | ||
max_tokens: maxTokens != null ? maxTokens : 4096, | ||
// 4096: max model output tokens | ||
// 4096: max model output tokens TODO remove | ||
temperature, | ||
top_k: topK, | ||
top_p: topP, | ||
@@ -478,0 +477,0 @@ stop_sequences: stopSequences, |
# @ai-sdk/anthropic | ||
## 1.0.0-canary.4 | ||
### Major Changes | ||
- 2f6e8c0: chore (provider/anthropic): remove topK model setting | ||
## 1.0.0-canary.3 | ||
@@ -4,0 +10,0 @@ |
@@ -8,11 +8,2 @@ import { ProviderV1, LanguageModelV1 } from '@ai-sdk/provider'; | ||
/** | ||
Only sample from the top K options for each subsequent token. | ||
Used to remove "long tail" low probability responses. | ||
Recommended for advanced use cases only. You usually only need to use temperature. | ||
@deprecated use the topK setting on the request instead. | ||
*/ | ||
topK?: number; | ||
/** | ||
Enable Anthropic cache control (beta feature). This will add the beta header and | ||
@@ -19,0 +10,0 @@ allow you to use provider-specific cacheControl metadata. |
@@ -470,8 +470,7 @@ "use strict"; | ||
model: this.modelId, | ||
// model specific settings: | ||
top_k: topK != null ? topK : this.settings.topK, | ||
// standardized settings: | ||
max_tokens: maxTokens != null ? maxTokens : 4096, | ||
// 4096: max model output tokens | ||
// 4096: max model output tokens TODO remove | ||
temperature, | ||
top_k: topK, | ||
top_p: topP, | ||
@@ -478,0 +477,0 @@ stop_sequences: stopSequences, |
{ | ||
"name": "@ai-sdk/anthropic", | ||
"version": "1.0.0-canary.3", | ||
"version": "1.0.0-canary.4", | ||
"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
Sorry, the diff of this file is not supported yet
255121
3060