from openai import OpenAI
client = OpenAI(
base_url="https://router.neutrinoapp.com/api/engines",
api_key="<Neutrino-API-key>"
)
response = client.chat.completions.create(
# Instead of a specific model, denote a tag with the tag: keyword
model="tag:name-of-tag", # examples: "tag:coding_agent", "tag:chatbot2"
messages = [
{"role": "system", "content": "You are a helpful AI assistant. Your job is to be helpful and respond to user requests."},
{"role": "user", "content": "What is a Neutrino?"},
],
)
print(f"Optimal model: {response.model}")
print(response.choices[0].message.content)