The supported model

Model and context length for 360 API support:

Baichuan Models

PlatformModel IdentifierNotes
360360GPT_S2_V9
360360gpt-pro
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="360GPT_S2_V9",
)
print(chat_completion.choices[0].message.content)

Was this page helpful?