pi-mono/packages/ai/catalog/providers/stepfun-cn.ts
Armin Ronacher 63dfe49bfa feat(ai,coding-agent): add DeepInfra, Nebius, Ollama Cloud, Scaleway, SiliconFlow, and StepFun providers
Adds deepinfra, nebius, ollama-cloud, scaleway, siliconflow, siliconflow-cn, stepfun, and stepfun-cn from models.dev. Hosts without verified support for OpenAI-only request features leave out store, developer messages, long cache retention, and max_completion_tokens, and send reasoning_effort only where models.dev lists effort levels. SiliconFlow toggles thinking with enable_thinking; StepFun uses DeepSeek-style reasoning.
2026-10-28 11:06:14 +01:00

8 lines
319 B
TypeScript

import { defineProvider } from "../define.ts";
import { STEPFUN_COMPLETIONS_COMPAT, stepfunModels } from "./stepfun.ts";
export default defineProvider({
id: "stepfun-cn",
models: (ctx) => stepfunModels(ctx, "stepfun", "https://api.stepfun.com/v1"),
compat: { "openai-completions": STEPFUN_COMPLETIONS_COMPAT },
});