Meta
Meta

Llama v2 13B Chat

meta-llama/llama-2-13b-chat

A 13 billion parameter language model from Meta, fine tuned for chat completions

Community

Open Source

Context Window

4,096

0

Using Llama v2 13B Chat with Python API

Using Llama v2 13B 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="meta-llama/llama-2-13b-chat",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)