14 lines
911 B
TOML
14 lines
911 B
TOML
name = "Cloudflare Workers AI"
|
|
env = ["CLOUDFLARE_ACCOUNT_ID", "CLOUDFLARE_API_KEY"]
|
|
npm = "@ai-sdk/openai-compatible"
|
|
# Raw native HTTP is POST `/client/v4/accounts/{account_id}/ai/run/{model}`;
|
|
# each model's `sync-input.json` is the authoritative request schema.
|
|
# OpenAI-compatible POST `/ai/v1/chat/completions` and `/ai/v1/responses` use
|
|
# `reasoning_effort` or `reasoning.effort`; native template toggles are
|
|
# model-specific `chat_template_kwargs.thinking|enable_thinking` booleans.
|
|
# https://developers.cloudflare.com/workers-ai/get-started/rest-api/ (accessed 2026-06-25)
|
|
# https://developers.cloudflare.com/workers-ai/configuration/open-ai-compatibility/ (accessed 2026-06-25)
|
|
# https://developers.cloudflare.com/workers-ai/models/ (accessed 2026-06-25)
|
|
doc = "https://developers.cloudflare.com/workers-ai/models/"
|
|
api = "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/ai/v1"
|