mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-24 10:50:24 +01:00
GPT4 responded with a JSON object != schema.
Retry the request, advising what the issue was
This commit is contained in:
@@ -66,10 +66,8 @@ def parse_agent_response(response, function_calls: Union[FunctionCallSet, None])
|
||||
response: The response from the agent.
|
||||
function_calls: Optional function calls associated with the response.
|
||||
|
||||
Returns:
|
||||
The post-processed response.
|
||||
Returns: The post-processed response.
|
||||
"""
|
||||
|
||||
if function_calls:
|
||||
text = response['text']
|
||||
values = list(json.loads(text).values())
|
||||
|
||||
Reference in New Issue
Block a user