fixes retry_async message unpacking (#175)

This commit is contained in:
Braden Kinard
2023-11-13 18:48:24 -05:00
committed by GitHub
parent 55efa8cad0
commit 209c06d22b
+1 -1
View File
@@ -89,7 +89,7 @@ async def retry_async(
None,
)
except (ValidationError, JSONDecodeError) as e:
kwargs["messages"].append(dict(**response.choices[0].message)) # type: ignore
kwargs["messages"].append(response.choices[0].message) # type: ignore
kwargs["messages"].append(
{
"role": "user",