File size: 867 Bytes
f65659f d3fff78 f65659f 990972e d3fff78 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | ---
title: llama.cpp
emoji: 🐑
colorFrom: red
colorTo: red
sdk: docker
pinned: false
---
# Bielik-7B-Instruct OpenAI Compatible API
This Space provides an OpenAI-compatible API for the **Bielik-7B-Instruct-v0.1** model using `llama-cpp-python`.
## API Endpoint
The OpenAI compatible endpoint is available at:
`https://oki602960-bielik-api.hf.space/v1`
## Usage Example
You can use it with the OpenAI Python client:
```python
from openai import OpenAI
client = OpenAI(
base_url="https://oki602960-bielik-api.hf.space/v1",
api_key="sk-no-key-required"
)
response = client.chat.completions.create(
model="bielik",
messages=[{"role": "user", "content": "Cześć, jak się masz?"}]
)
print(response.choices[0].message.content)
```
## Model Information
- **Model**: Bielik-7B-Instruct-v0.1
- **Format**: GGUF (Q2_K)
- **Engine**: llama-cpp-python |