01.AI
01AI

Yi 34B Chat

01-ai/yi-34b-chat

The Yi series models are large language models trained from scratch by developers at 01.AI. This version is instruct-tuned to work better for chat.

Community

Open Source

Context Window

4,096

0

Using Yi 34B Chat with Python API

Using Yi 34B Chat with OpenAI compatible API

import openai

client = openai.Client(
  api_key= '{your_api_key}',
  base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="01-ai/yi-34b-chat",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)