style(api): keep model setup error on one line
This commit is contained in:
1 parent
3ab8082118
commit
b079522fa1
1 file changed
+1
-2
@@ -279,8 +279,7 @@ async def handle_chat_completions(request: web.Request) -> web.Response | web.St
|
|||||||
if isinstance(agent_loop.provider, UnconfiguredProvider):
|
if isinstance(agent_loop.provider, UnconfiguredProvider):
|
||||||
return _error_json(
|
return _error_json(
|
||||||
503,
|
503,
|
||||||
"Model is not configured. Open Settings → Models to configure a provider "
|
"Model is not configured. Open Settings → Models to configure a provider and model, then restart the API server.",
|
||||||
"and model, then restart the API server.",
|
|
||||||
err_type="configuration_error",
|
err_type="configuration_error",
|
||||||
)
|
)
|
||||||
timeout_s: float = request.app[_REQUEST_TIMEOUT_KEY]
|
timeout_s: float = request.app[_REQUEST_TIMEOUT_KEY]
|
||||||
|
|||||||
Reference in new issue
Block a user