mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
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.
8 lines
319 B
TypeScript
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 },
|
|
});
|