Meta
Meta

CodeLlama 34B Instruct

meta-llama/codellama-34b-instruct

Code Llama is built upon Llama 2 and excels at filling in code, handling extensive input contexts, and folling programming instructions without prior training for various programming tasks.

Community

Open Source

Context Window

8,192

0

Using CodeLlama 34B Instruct with Python API

Using CodeLlama 34B Instruct 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/codellama-34b-instruct",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)