Close local release-quality gaps and reconcile workplan status
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0e332-3365-77c0-8491-084e9ea33ac1
This commit is contained in:
parent
37436bb562
commit
7cd633986e
56 changed files with 462 additions and 237 deletions
|
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
|||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
from typing import Any, cast
|
||||
|
||||
from llm_connect.claude_code import _unwrap_cli_json_envelope
|
||||
from llm_connect.models import RunConfig
|
||||
|
|
@ -51,7 +51,7 @@ def _parse_provider_response(provider: str | None, body: Any, config: RunConfig)
|
|||
if provider in {"openai", "openrouter"}:
|
||||
if isinstance(body, dict):
|
||||
choice = (body.get("choices") or [{}])[0]
|
||||
return choice.get("message", {}).get("content", "")
|
||||
return cast(str, choice.get("message", {}).get("content", ""))
|
||||
return ""
|
||||
|
||||
if provider == "gemini":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue