New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/anthropic

Package Overview
Dependencies
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/anthropic - npm Package Compare versions

Comparing version 1.0.0-canary.3 to 1.0.0-canary.4

5

./dist/index.js

@@ -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,

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc