SDK INTEGRATION
ExperimentalThe standard Python client accepts the same base URL, key, model, and Chat Completions shape, but it is not yet in the repository's automated compatibility suite.
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-medium",
messages=[{"role": "user", "content": "Review this repository."}],
stream=True,
)