@artemiskit/adapter-anthropic 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @artemiskit/adapter-anthropic
|
|
2
2
|
|
|
3
|
+
## 0.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [27d7645]
|
|
8
|
+
- @artemiskit/core@0.1.6
|
|
9
|
+
|
|
10
|
+
## 0.1.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [8e10aaa]
|
|
15
|
+
- @artemiskit/core@0.1.5
|
|
16
|
+
|
|
3
17
|
## 0.1.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -2779,7 +2779,7 @@ class AnthropicAdapter {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
async generate(options) {
|
|
2781
2781
|
const startTime = Date.now();
|
|
2782
|
-
const model = options.model || this.config.defaultModel || "claude-
|
|
2782
|
+
const model = options.model || this.config.defaultModel || "claude-sonnet-4-5-20241022";
|
|
2783
2783
|
const { systemPrompt, messages } = this.normalizePrompt(options.prompt);
|
|
2784
2784
|
const response = await this.client.messages.create({
|
|
2785
2785
|
model,
|
|
@@ -2807,7 +2807,7 @@ class AnthropicAdapter {
|
|
|
2807
2807
|
};
|
|
2808
2808
|
}
|
|
2809
2809
|
async* stream(options, onChunk) {
|
|
2810
|
-
const model = options.model || this.config.defaultModel || "claude-
|
|
2810
|
+
const model = options.model || this.config.defaultModel || "claude-sonnet-4-5-20241022";
|
|
2811
2811
|
const { systemPrompt, messages } = this.normalizePrompt(options.prompt);
|
|
2812
2812
|
const stream = this.client.messages.stream({
|
|
2813
2813
|
model,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artemiskit/adapter-anthropic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Anthropic Claude adapter for ArtemisKit LLM evaluation toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test": "bun test"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@artemiskit/core": "0.1.
|
|
33
|
+
"@artemiskit/core": "0.1.6",
|
|
34
34
|
"@anthropic-ai/sdk": "^0.30.0",
|
|
35
35
|
"nanoid": "^5.0.0"
|
|
36
36
|
},
|
package/src/index.ts
CHANGED
|
@@ -36,7 +36,7 @@ export class AnthropicAdapter implements ModelClient {
|
|
|
36
36
|
|
|
37
37
|
async generate(options: GenerateOptions): Promise<GenerateResult> {
|
|
38
38
|
const startTime = Date.now();
|
|
39
|
-
const model = options.model || this.config.defaultModel || 'claude-
|
|
39
|
+
const model = options.model || this.config.defaultModel || 'claude-sonnet-4-5-20241022';
|
|
40
40
|
|
|
41
41
|
const { systemPrompt, messages } = this.normalizePrompt(options.prompt);
|
|
42
42
|
|
|
@@ -69,7 +69,7 @@ export class AnthropicAdapter implements ModelClient {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
async *stream(options: GenerateOptions, onChunk: (chunk: string) => void): AsyncIterable<string> {
|
|
72
|
-
const model = options.model || this.config.defaultModel || 'claude-
|
|
72
|
+
const model = options.model || this.config.defaultModel || 'claude-sonnet-4-5-20241022';
|
|
73
73
|
const { systemPrompt, messages } = this.normalizePrompt(options.prompt);
|
|
74
74
|
|
|
75
75
|
const stream = this.client.messages.stream({
|