Files
sub2api/backend/internal/handler/admin
alfadb 361e584bcf feat(ollama): make responses and max_tokens hooks platform-aware
- C31: include ollama_cloud in SupportsNativeCNResponses so /v1/responses
  ingress routes to the platform-native endpoint instead of degrading to
  raw CC, and the stateless normalize hook (store=false + strip
  previous_response_id) now applies to ollama accounts
- D2/C37': reject the stateful conversation field with an explicit 400
  invalid_request_error on native Responses accounts instead of silently
  dropping context; normalizeDeepSeekResponsesRequestBody now returns
  ([]byte, error) with all three production call sites propagating the
  typed error as a client-visible 400
- D1': clamp max_tokens for non-DeepSeek models too on ollama.com
  upstreams (raw CC, native Responses, Anthropic Messages); the host
  check is the boundary, the >65535 upstream 400 is model-independent;
  delete the now-dead isOllamaCloudRawChatCompletionsAccount predicate
- C39: mark ollama_cloud accounts force_responses in the Responses
  probe (per-protocol, no network probe) and let the admin handler
  schedule the probe for ollama_cloud accounts
2026-10-08 15:24:05 +08:00
..