maxtokens is parsed as an int
This commit is contained in:
parent
1b1143e6e3
commit
9429395030
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ export class Anthropic {
|
||||||
|
|
||||||
let claude_body = {
|
let claude_body = {
|
||||||
model: this.model,
|
model: this.model,
|
||||||
max_tokens: this.max_tokens,
|
max_tokens: parseInt(this.max_tokens),
|
||||||
system: this.system_prompt,
|
system: this.system_prompt,
|
||||||
messages: messages,
|
messages: messages,
|
||||||
stream: this.stream,
|
stream: this.stream,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue