diff --git a/api/app/clients/AnthropicClient.js b/api/app/clients/AnthropicClient.js index 304208e49d..5c35bc28f4 100644 --- a/api/app/clients/AnthropicClient.js +++ b/api/app/clients/AnthropicClient.js @@ -268,14 +268,25 @@ class AnthropicClient extends BaseClient { }; let text = ''; - const { model, stream, maxOutputTokens, ...rest } = this.modelOptions; + const { + stream, + model, + temperature, + maxOutputTokens, + stop: stop_sequences, + topP: top_p, + topK: top_k, + } = this.modelOptions; const requestOptions = { prompt: payload, model, stream: stream || true, max_tokens_to_sample: maxOutputTokens || 1500, + stop_sequences, + temperature, metadata, - ...rest, + top_p, + top_k, }; if (this.options.debug) { console.log('AnthropicClient: requestOptions');