The supported model
Model and context length for Moonshot API support:
Moonshot Models
Platform | Model Identifier | Notes |
---|---|---|
Moonshot | moonshot-v1-8k | |
Moonshot | moonshot-v1-32k | |
Moonshot | moonshot-v1-128k |
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="moonshot-v1-8k",
)
print(chat_completion.choices[0].message.content)