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

@ampt/ai

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampt/ai - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

18

dist/index.d.ts

@@ -1,2 +0,4 @@

interface InvokeModelOptions {
import { BedrockRuntime } from '@aws-sdk/client-bedrock-runtime';
interface InvokeOptions {
prompt: string;

@@ -6,3 +8,2 @@ maxTokens?: number;

}
type ModelId = 'anthropic.claude-v2' | 'anthropic.claude-instant-v1' | 'anthropic.claude-v1';
/**

@@ -13,3 +14,7 @@ * Invoke model and return events as a ReadableStream.

*/
declare function invokeModel(options: InvokeModelOptions): Promise<ReadableStream<any>>;
declare function invoke(options: InvokeOptions): Promise<ReadableStream<any>>;
type ModelId = 'anthropic.claude-v2' | 'anthropic.claude-instant-v1' | 'anthropic.claude-v1';
declare function models(): Promise<ModelId[]>;
type MessageRole = 'assistant' | 'human';

@@ -32,2 +37,3 @@ /**

modelId?: ModelId;
maxTokens?: number;
}

@@ -41,5 +47,7 @@ /**

declare namespace chat {
var models: ModelId[];
var models: () => Promise<ModelId[]>;
}
export { ChatOptions, InvokeModelOptions, ModelId, buildPrompt, chat, invokeModel };
declare const bedrock: BedrockRuntime;
export { ChatMessage, ChatOptions, InvokeOptions, MessageRole, ModelId, bedrock, buildPrompt, chat, invoke, models };
{
"name": "@ampt/ai",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",

@@ -5,0 +5,0 @@ "main": "./dist/index.cjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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