mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00: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']: {
|
||||
async list () {
|
||||
return [
|
||||
'claude-3-5-sonnet-20241022',
|
||||
'claude-3-5-sonnet-20240620',
|
||||
'claude-3-haiku-20240307',
|
||||
];
|
||||
@ -74,7 +75,7 @@ class ClaudeService extends BaseService {
|
||||
}, stream);
|
||||
(async () => {
|
||||
const completion = await this.anthropic.messages.stream({
|
||||
model: model ?? 'claude-3-5-sonnet-20240620',
|
||||
model: model ?? 'claude-3-5-sonnet-20241022',
|
||||
max_tokens: 1000,
|
||||
temperature: 0,
|
||||
system: PUTER_PROMPT + JSON.stringify(system_prompts),
|
||||
@ -97,7 +98,7 @@ class ClaudeService extends BaseService {
|
||||
}
|
||||
|
||||
const msg = await this.anthropic.messages.create({
|
||||
model: 'claude-3-5-sonnet-20240620',
|
||||
model: 'claude-3-5-sonnet-20241022',
|
||||
max_tokens: 1000,
|
||||
temperature: 0,
|
||||
system: PUTER_PROMPT + JSON.stringify(system_prompts),
|
||||
|
Loading…
Reference in New Issue
Block a user