Loading page
SDK INTEGRATION
VerifiedUse Tsubasa with the official JavaScript SDK.
Covered by a reproducible compatibility test in this repository.
Uses an example ID from the current environment. It is not a recommendation unless the capability panel says so.
import OpenAI from "openai"
const client = new OpenAI({
apiKey: process.env.TSUBASA_API_KEY,
baseURL: "https://api.tsubasa.sh/v1",
})
const stream = await client.chat.completions.create({
model: "tsubasa-pro",
messages: [
{ role: "user", content: "Review this repository and propose a patch." },
],
stream: true,
})