Complete activity-core LLM endpoint handoff (LLM-WP-0006)
Switch the custodian triage default from anthropic/claude-sonnet-4 to google/gemini-2.5-flash, which advertises structured-output support on OpenRouter. Tighten the OpenRouter adapter to send strict JSON schema requests and set provider.require_parameters=true so routing only hits providers that honor the requested response_format. Update Kubernetes deploy docs and config for the verified coulombcore handoff: Containerfile build path, image-pull-policy=Never for smoke pods, credential-routing notes, and live smoke evidence. Mark LLM-WP-0006 finished with closure notes from 2026-06-18.
This commit is contained in:
parent
6a0319ee86
commit
90eb39c247
12 changed files with 176 additions and 27 deletions
|
|
@ -82,6 +82,13 @@ class OpenRouterAdapter(LLMAdapter):
|
|||
}
|
||||
if config.model_params:
|
||||
merge_openai_chat_model_params(payload, config.model_params)
|
||||
provider_params = config.model_params.get("provider")
|
||||
if isinstance(provider_params, dict):
|
||||
payload["provider"] = dict(provider_params)
|
||||
if _uses_json_schema_response_format(payload):
|
||||
provider = payload.setdefault("provider", {})
|
||||
if isinstance(provider, dict):
|
||||
provider.setdefault("require_parameters", True)
|
||||
|
||||
headers = {
|
||||
"Authorization": f"Bearer {self._api_key}",
|
||||
|
|
@ -149,3 +156,8 @@ class OpenRouterAdapter(LLMAdapter):
|
|||
else:
|
||||
raise
|
||||
raise last_exc # type: ignore[misc]
|
||||
|
||||
|
||||
def _uses_json_schema_response_format(payload: Dict[str, Any]) -> bool:
|
||||
response_format = payload.get("response_format")
|
||||
return isinstance(response_format, dict) and response_format.get("type") == "json_schema"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue