> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Promptfoo

> Führen Sie Promptfoo-Evaluierungen mit TokenLab-Modellen durch

## Überblick

Promptfoo kann TokenLab über seine OpenAI-kompatiblen Chat- und Responses-Provider evaluieren.

<Note>
  **Typ**: Evaluierungs-Framework

  **Primäre Pfade**: OpenAI-kompatible Chat-Completions und Responses

  **Support-Status**: Unterstützter Pfad
</Note>

## Umgebung

```bash theme={null}
export TOKENLAB_API_KEY="sk-your-tokenlab-key"
```

## Beispielkonfiguration

```yaml theme={null}
description: TokenLab provider example

prompts:
  - 'Answer in one concise paragraph: {{question}}'

providers:
  - id: openai:chat:gpt-5.4-mini
    label: tokenlab-chat-gpt-5.4-mini
    config:
      apiBaseUrl: https://api.tokenlab.sh/v1
      apiKey: '{{env.TOKENLAB_API_KEY}}'
  - id: openai:responses:gpt-5.5
    label: tokenlab-responses-gpt-5.5
    config:
      apiBaseUrl: https://api.tokenlab.sh/v1
      apiKey: '{{env.TOKENLAB_API_KEY}}'

tests:
  - vars:
      question: What are two practical ways to evaluate an LLM gateway?
    assert:
      - type: contains-any
        value:
          - latency
          - reliability
          - cost
          - quality
```

## Ausführung

```bash theme={null}
promptfoo eval
```

Verwenden Sie Chat-Provider für eine breite Kompatibilität. Verwenden Sie Responses-Provider, wenn die Evaluierung spezifisch vom Verhalten der Responses abhängt.
