Comparing version 1.0.0 to 1.0.1
@@ -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
1792662
45572