mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-06 02:28:51 +01:00
fix(Anthropic): Correct Payload & Increase Default Token Size 🔧 (#933)
* fix: don't pass unnecessary fields to anthropic payload * fix: increase maxOutputTokens range * chore: remove debugging mode
This commit is contained in:
parent
dee5888280
commit
4d89adfc57
5 changed files with 14 additions and 13 deletions
|
|
@ -268,13 +268,14 @@ class AnthropicClient extends BaseClient {
|
|||
};
|
||||
|
||||
let text = '';
|
||||
const { model, stream, maxOutputTokens, ...rest } = this.modelOptions;
|
||||
const requestOptions = {
|
||||
prompt: payload,
|
||||
model: this.modelOptions.model,
|
||||
stream: this.modelOptions.stream || true,
|
||||
max_tokens_to_sample: this.modelOptions.maxOutputTokens || 1500,
|
||||
model,
|
||||
stream: stream || true,
|
||||
max_tokens_to_sample: maxOutputTokens || 1500,
|
||||
metadata,
|
||||
...modelOptions,
|
||||
...rest,
|
||||
};
|
||||
if (this.options.debug) {
|
||||
console.log('AnthropicClient: requestOptions');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue