[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:
David Leen 2024-01-12 12:32:57 +01:00
parent 51110bfb62
commit 8b021fc4cd

View file

@ -498,6 +498,8 @@ def completion(
"textGenerationConfig": inference_params,
}
)
else:
data = json.dumps({})
## COMPLETION CALL
accept = "application/json"