Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
在 Replit 应用和部署中调用 Phaseo。
PHASEO_API_KEY
PHASEO_API_KEY=phaseo_v1_sk_...
// npm install openai import OpenAI from "openai"; const client = new OpenAI({ apiKey: process.env.PHASEO_API_KEY, baseURL: "https://api.phaseo.app/v1", }); const response = await client.responses.create({ model: "openai/gpt-6-astra", input: "Reply with only: ok", }); console.log(response.output_text);
// npm install @phaseo/ai-sdk-provider import { phaseo } from "@phaseo/ai-sdk-provider"; import { generateText } from "ai"; const { text } = await generateText({ model: phaseo("openai/gpt-6-astra"), prompt: "Reply with only: ok", }); console.log(text);
ok
此页面对您有帮助吗?