mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
support optional params for bedrock amazon
This commit is contained in:
parent
e5fff9bada
commit
29e3b4fdd2
3 changed files with 19 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue