Skip to content

Commit 493075d

Browse files
Merge pull request #12 from anthropics/justin/tags
Expose `tags` parameter for custom metadata with completion calls
2 parents cf4eae0 + 9f71ff0 commit 493075d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@anthropic-ai/sdk",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "Library for accessing the Anthropic API",
55
"repository": "https://github.com/anthropics/anthropic-sdk-typescript",
66
"license": "MIT",

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export type SamplingParameters = {
99
top_k?: number;
1010
top_p?: number;
1111
model: string;
12+
tags?: { [key: string]: string };
1213
};
1314

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

20-
const CLIENT_ID = "anthropic-typescript/0.4.1";
21+
const CLIENT_ID = "anthropic-typescript/0.4.2";
2122
const DEFAULT_API_URL = "https://api.anthropic.com";
2223

2324
enum Event {

0 commit comments

Comments
 (0)