You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snowflake Cortex exposes an OpenAI-compatible Chat Completions API but requires a few code changes to work with opencode:
The endpoint URL is per-account (https://${SNOWFLAKE_ACCOUNT}.snowflakecomputing.com/api/v2/cortex/v1) — it can't be a static models.dev URL
The API uses max_completion_tokens instead of max_tokens
It returns HTTP 400 "conversation complete" as a normal stop condition rather than a finish_reason
A companion models.dev PR adds the catalog entry with all models and capabilities: anomalyco/models.dev#1902
I have verified this feature hasn't been suggested before.
Activity
kameshsampath commentedon May 29, 2026
CC: @sfc-gh-kkeller