mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 18:25:22 +00:00
[bug] unbound variable in bedrock
note: the code was written as `json.dumps({})` even though it is more verbose in order to facilitate easier refactoring in the future
fixes #1428
This commit is contained in:
@@ -498,6 +498,8 @@ def completion(
|
||||
"textGenerationConfig": inference_params,
|
||||
}
|
||||
)
|
||||
else:
|
||||
data = json.dumps({})
|
||||
|
||||
## COMPLETION CALL
|
||||
accept = "application/json"
|
||||
|
||||
Reference in New Issue
Block a user