The supported model
Model and context length for allenai API support:
allenai Models
Platform | Model Identifier | Notes |
---|---|---|
allenai | allenai/OLMo-7B-Instruct |
from openai import OpenAI
client = OpenAI(
api_key = "Own API key",
base_url = "https://api.zgiai.com/v1"
)
chat_completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Who are you?",
}
],
model="allenai/OLMo-7B-Instruct",
)
print(chat_completion.choices[0].message.content)