Skip to content

Commit

Permalink
Merge pull request #12 from anthropics/justin/tags
Browse files Browse the repository at this point in the history
Expose `tags` parameter for custom metadata with completion calls
  • Loading branch information
jspahrsummers authored Feb 23, 2023
2 parents cf4eae0 + 9f71ff0 commit 493075d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anthropic-ai/sdk",
"version": "0.4.1",
"version": "0.4.2",
"description": "Library for accessing the Anthropic API",
"repository": "https://github.com/anthropics/anthropic-sdk-typescript",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type SamplingParameters = {
top_k?: number;
top_p?: number;
model: string;
tags?: { [key: string]: string };
};

export type OnOpen = (response: Response) => void | Promise<void>;
Expand All @@ -17,7 +18,7 @@ export type OnUpdate = (completion: CompletionResponse) => void | Promise<void>;
export const HUMAN_PROMPT = "\n\nHuman:";
export const AI_PROMPT = "\n\nAssistant:";

const CLIENT_ID = "anthropic-typescript/0.4.1";
const CLIENT_ID = "anthropic-typescript/0.4.2";
const DEFAULT_API_URL = "https://api.anthropic.com";

enum Event {
Expand Down

0 comments on commit 493075d

Please sign in to comment.