Integrations
Novita AI
Trace Novita AI calls in Muster via the OpenAI-compatible API.
Novita AI serves open-weights models behind an OpenAI-compatible endpoint. Trace them in Muster by pointing the Muster OpenAI wrapper at Novita's base URL.
Setup
%pip install langfuse openai --upgradeimport os
os.environ["LANGFUSE_PUBLIC_KEY"] = "pk-lf-..."
os.environ["LANGFUSE_SECRET_KEY"] = "sk-lf-..."
os.environ["LANGFUSE_BASE_URL"] = "https://app.getmuster.io"
os.environ["NOVITA_API_KEY"] = "..."from langfuse.openai import OpenAI
client = OpenAI(
base_url="https://api.novita.ai/v3/openai",
api_key=os.environ["NOVITA_API_KEY"],
)
response = client.chat.completions.create(
model="meta-llama/llama-3.1-8b-instruct",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)