01.AI
01AI

Yi 34B (base)

01-ai/yi-34b

The Yi series models are large language models trained from scratch by developers at 01.AI.

Community

Open Source

Context Window

4,096

0

Using Yi 34B (base) with Python API

Using Yi 34B (base) 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",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)