The supported model

Model and context length for Lingyiwanwu API support:

Lingyiwanwu Models

PlatformModel IdentifierNotes
yiyi-34b-chat-0205
yiyi-34b-chat-200k
yiyi-vl-plus
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="yi-34b-chat-0205",
)
print(chat_completion.choices[0].message.content)

Was this page helpful?