Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

@promptbook/anthropic-claude

Package Overview
Dependencies
Maintainers
1
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/anthropic-claude - npm Package Compare versions

Comparing version 0.52.0-3 to 0.52.0-4

12

esm/index.es.js

@@ -145,3 +145,3 @@ import Anthropic from '@anthropic-ai/sdk';

modelTitle: 'Claude 3 Opus',
modelName: 'claude-3-opus',
modelName: 'claude-3-opus-20240229',
pricing: {

@@ -155,3 +155,3 @@ prompt: computeUsage("$15.00 / 1M tokens"),

modelTitle: 'Claude 3 Sonnet',
modelName: 'claude-3-sonnet',
modelName: 'claude-3-sonnet-20240229',
pricing: {

@@ -165,3 +165,3 @@ prompt: computeUsage("$3.00 / 1M tokens"),

modelTitle: 'Claude 3 Haiku',
modelName: ' claude-3-haiku',
modelName: ' claude-3-haiku-20240307',
pricing: {

@@ -242,3 +242,3 @@ prompt: computeUsage("$0.25 / 1M tokens"),

model: modelRequirements.modelName || this.getDefaultChatModel().modelName,
max_tokens: modelRequirements.maxTokens || 10000,
max_tokens: modelRequirements.maxTokens || 4096,
// <- TODO: Make some global max cap for maxTokens

@@ -301,3 +301,3 @@ messages: [

return __generator(this, function (_a) {
throw new Error('Anthropic complation models are not implemented to Promptbook yet');
throw new Error('Anthropic complation models are not implemented to Promptbook yet [๐Ÿ‘]');
});

@@ -312,3 +312,3 @@ });

var modelName = _a.modelName;
return modelName === 'claude-3-opus';
return modelName.startsWith('claude-3-opus');
});

@@ -315,0 +315,0 @@ };

@@ -11,3 +11,3 @@ import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools';

private readonly options;
constructor(options: JavascriptExecutionToolsOptions);
constructor(options?: JavascriptExecutionToolsOptions);
/**

@@ -14,0 +14,0 @@ * Executes a JavaScript

@@ -10,3 +10,3 @@ import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools';

private readonly options;
constructor(options: JavascriptExecutionToolsOptions);
constructor(options?: JavascriptExecutionToolsOptions);
/**

@@ -13,0 +13,0 @@ * Executes a JavaScript

{
"name": "@promptbook/anthropic-claude",
"version": "0.52.0-3",
"version": "0.52.0-4",
"description": "Library to supercharge your use of large language models",

@@ -51,3 +51,3 @@ "private": false,

"peerDependencies": {
"@promptbook/core": "0.52.0-3"
"@promptbook/core": "0.52.0-4"
},

@@ -54,0 +54,0 @@ "main": "./umd/index.umd.js",

@@ -38,2 +38,13 @@ # ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook

## Other models
See the other models available in the Promptbook package:
- [OpenAI](https://www.npmjs.com/package/@promptbook/openai)
- [Azure OpenAI](https://www.npmjs.com/package/@promptbook/azure-openai)
---

@@ -40,0 +51,0 @@

@@ -153,3 +153,3 @@ (function (global, factory) {

modelTitle: 'Claude 3 Opus',
modelName: 'claude-3-opus',
modelName: 'claude-3-opus-20240229',
pricing: {

@@ -163,3 +163,3 @@ prompt: computeUsage("$15.00 / 1M tokens"),

modelTitle: 'Claude 3 Sonnet',
modelName: 'claude-3-sonnet',
modelName: 'claude-3-sonnet-20240229',
pricing: {

@@ -173,3 +173,3 @@ prompt: computeUsage("$3.00 / 1M tokens"),

modelTitle: 'Claude 3 Haiku',
modelName: ' claude-3-haiku',
modelName: ' claude-3-haiku-20240307',
pricing: {

@@ -250,3 +250,3 @@ prompt: computeUsage("$0.25 / 1M tokens"),

model: modelRequirements.modelName || this.getDefaultChatModel().modelName,
max_tokens: modelRequirements.maxTokens || 10000,
max_tokens: modelRequirements.maxTokens || 4096,
// <- TODO: Make some global max cap for maxTokens

@@ -309,3 +309,3 @@ messages: [

return __generator(this, function (_a) {
throw new Error('Anthropic complation models are not implemented to Promptbook yet');
throw new Error('Anthropic complation models are not implemented to Promptbook yet [๐Ÿ‘]');
});

@@ -320,3 +320,3 @@ });

var modelName = _a.modelName;
return modelName === 'claude-3-opus';
return modelName.startsWith('claude-3-opus');
});

@@ -323,0 +323,0 @@ };

@@ -11,3 +11,3 @@ import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools';

private readonly options;
constructor(options: JavascriptExecutionToolsOptions);
constructor(options?: JavascriptExecutionToolsOptions);
/**

@@ -14,0 +14,0 @@ * Executes a JavaScript

@@ -10,3 +10,3 @@ import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools';

private readonly options;
constructor(options: JavascriptExecutionToolsOptions);
constructor(options?: JavascriptExecutionToolsOptions);
/**

@@ -13,0 +13,0 @@ * Executes a JavaScript

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