[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:33:00 +01:00
parent 51110bfb62
commit 8b021fc4cd
+2
View File
@@ -498,6 +498,8 @@ def completion(
"textGenerationConfig": inference_params,
}
)
else:
data = json.dumps({})
## COMPLETION CALL
accept = "application/json"