SSE Client Examples

The following examples demonstrate how to interact with the Bitseek Chat SSE API using different methods and OpenAI-compatible client libraries.

cURL (Command Line)

For quick testing or shell scripting, you can use curl:

curl https://chat-proxy.bitseek.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API-KEY>" \
  -d '{
        "messages": [
          {
            "role": "user",
            "content": "Hello, please introduce yourself."
          }
        ]
      }'

Language Examples

Each example includes:

  • Client initialization with proper base URL
  • Authentication setup
  • Making streaming requests
  • Processing SSE responses

Supported languages:

results matching ""

    No results matching ""