Loading page
SDK INTEGRATION
ExperimentalUse Tsubasa with the official Python SDK.
The documented interface aligns, but the complete tool workflow has not been verified against Tsubasa.
Uses an example ID from the current environment. It is not a recommendation unless the capability panel says so.
from openai import OpenAI
client = OpenAI(
api_key=os.environ["TSUBASA_API_KEY"],
base_url="https://api.tsubasa.sh/v1",
)
stream = client.chat.completions.create(
model="tsubasa-pro",
messages=[{"role": "user", "content": "Review this repository."}],
stream=True,
)