File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
agentle/generations/providers/openrouter Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1520,13 +1520,13 @@ async def generate_async[T = WithoutStructuredOutput](
15201520 response_text = response .text
15211521 logger .error (
15221522 f"Failed to parse OpenRouter response as JSON. "
1523- f"Status: { response .status_code } , "
1524- f"Content-Type: { response .headers .get ('content-type' )} , "
1525- f"Response preview: { response_text [:500 ]} "
1523+ + f"Status: { response .status_code } , "
1524+ + f"Content-Type: { response .headers .get ('content-type' )} , "
1525+ + f"Response preview: { response_text [:500 ]} "
15261526 )
15271527 raise ValueError (
15281528 f"OpenRouter returned invalid JSON (status { response .status_code } ). "
1529- f"Response preview: { response_text [:200 ]} "
1529+ + f"Response preview: { response_text [:200 ]} "
15301530 ) from json_error
15311531
15321532 except asyncio .TimeoutError as e :
You can’t perform that action at this time.
0 commit comments