Files
2026-07-13 12:28:55 +08:00

16 lines
887 B
TOML

name = "Snowflake Cortex"
npm = "@ai-sdk/openai-compatible"
api = "https://${SNOWFLAKE_ACCOUNT}.snowflakecomputing.com/api/v2/cortex/v1"
env = ["SNOWFLAKE_ACCOUNT", "SNOWFLAKE_CORTEX_PAT"]
# Reasoning HTTP format (accessed 2026-06-25):
# OpenAI-compatible POST /api/v2/cortex/v1/chat/completions: OpenAI models use
# top-level reasoning_effort = "none"|"minimal"|"low"|"medium"|"high".
# Claude models use reasoning.max_tokens for manual thinking budgets;
# reasoning_effort is ignored, and reasoning.effort is converted to max_tokens.
# Adaptive-only Claude controls are exposed on Snowflake's Messages API, not on
# this OpenAI-compatible provider surface. Other model families ignore all three
# reasoning controls.
# Source:
# https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-rest-api
doc = "https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-rest-api"