mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: claude max token
This commit is contained in:
parent
7bf1c84989
commit
7fcf0c6b58
2 changed files with 3 additions and 2 deletions
|
|
@ -151,7 +151,7 @@ export class ClaudeAPIClient extends BaseClient {
|
|||
let messages = history.map(h => { return { role: h.role, content: h.content } })
|
||||
body = Object.assign(body, {
|
||||
model: opt.model || this.model || 'claude-3-opus-20240229',
|
||||
max_tokens: opt.max_tokens || 1024,
|
||||
max_tokens: opt.max_tokens || 4096,
|
||||
messages,
|
||||
stream: false
|
||||
})
|
||||
|
|
|
|||
|
|
@ -259,7 +259,8 @@ class Core {
|
|||
stream: false,
|
||||
parentMessageId: conversation.parentMessageId,
|
||||
conversationId: conversation.conversationId,
|
||||
system: opt.system.claude
|
||||
system: opt.system.claude,
|
||||
max_tokens: Config.apiMaxToken
|
||||
}
|
||||
let img = await getImg(e)
|
||||
if (img && img.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue