mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-24 23:38:40 +08:00
sync: update claude model
This commit is contained in:
parent
9263cbaedd
commit
52a54d2248
@ -28,6 +28,7 @@ class ClaudeService extends BaseService {
|
|||||||
['puter-chat-completion']: {
|
['puter-chat-completion']: {
|
||||||
async list () {
|
async list () {
|
||||||
return [
|
return [
|
||||||
|
'claude-3-5-sonnet-20241022',
|
||||||
'claude-3-5-sonnet-20240620',
|
'claude-3-5-sonnet-20240620',
|
||||||
'claude-3-haiku-20240307',
|
'claude-3-haiku-20240307',
|
||||||
];
|
];
|
||||||
@ -74,7 +75,7 @@ class ClaudeService extends BaseService {
|
|||||||
}, stream);
|
}, stream);
|
||||||
(async () => {
|
(async () => {
|
||||||
const completion = await this.anthropic.messages.stream({
|
const completion = await this.anthropic.messages.stream({
|
||||||
model: model ?? 'claude-3-5-sonnet-20240620',
|
model: model ?? 'claude-3-5-sonnet-20241022',
|
||||||
max_tokens: 1000,
|
max_tokens: 1000,
|
||||||
temperature: 0,
|
temperature: 0,
|
||||||
system: PUTER_PROMPT + JSON.stringify(system_prompts),
|
system: PUTER_PROMPT + JSON.stringify(system_prompts),
|
||||||
@ -97,7 +98,7 @@ class ClaudeService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const msg = await this.anthropic.messages.create({
|
const msg = await this.anthropic.messages.create({
|
||||||
model: 'claude-3-5-sonnet-20240620',
|
model: 'claude-3-5-sonnet-20241022',
|
||||||
max_tokens: 1000,
|
max_tokens: 1000,
|
||||||
temperature: 0,
|
temperature: 0,
|
||||||
system: PUTER_PROMPT + JSON.stringify(system_prompts),
|
system: PUTER_PROMPT + JSON.stringify(system_prompts),
|
||||||
|
Loading…
Reference in New Issue
Block a user