Observability lets you capture structured debugging data for specific completion requests. It is opt-in per request, so your normal traffic stays lightweight.
Enable observability when you need to inspect:
observability: true.| Field | Type | Required | Description |
|---|---|---|---|
| observability | boolean | No | When true, observability payload is stored for that request. |
If omitted or set to false, no observability payload is written.
curl -X POST "https://api.lunos.tech/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-4-26b-a4b-it",
"observability": true,
"messages": [
{
"role": "user",
"content": [{ "type": "text", "text": "Can you jogging?" }]
}
]
}'
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.lunos.tech/v1",
)
response = client.chat.completions.create(
model="google/gemma-4-26b-a4b-it",
observability=True,
messages=[{"role": "user", "content": "Can you jogging?"}],
)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.LUNOS_API_KEY!,
baseURL: "https://api.lunos.tech/v1",
});
const response = await client.chat.completions.create({
model: "google/gemma-4-26b-a4b-it",
observability: true,
messages: [{ role: "user", content: "Can you jogging?" }],
});
You will see structured sections for request messages, response output, and usage metrics.
No headings found on this page.
