support optional params for bedrock amazon

This commit is contained in:
ishaan-jaff 2023-09-16 09:18:57 -07:00
parent e5fff9bada
commit 29e3b4fdd2
3 changed files with 19 additions and 9 deletions

View file

@ -94,14 +94,8 @@ def completion(
else: # amazon titan
data = json.dumps({
"inputText": prompt,
"textGenerationConfig":{
"maxTokenCount":4096,
"stopSequences":[],
"temperature":0,
"topP":0.9
}
"textGenerationConfig": optional_params,
})
## LOGGING
logging_obj.pre_call(
input=prompt,