Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/api/chat-completions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OpenAI-compatible chat completions endpoint backed by a ReAct agent over ARBuild
## Endpoint

```
POST https://<your-arbbuilder-host>/api/v1/chat/completions
POST https://arbuilder.app/api/v1/chat/completions
```

## Authentication
Expand Down Expand Up @@ -152,7 +152,7 @@ If a turn hits the iteration cap, the agent runs one final no-tools wrap-up call
### Curl, non-streaming

```bash
curl -X POST https://api.arbuilder.app/api/v1/chat/completions \
curl -X POST https://arbuilder.app/api/v1/chat/completions \
-H "Authorization: Bearer arb_xxxxx" \
-H "Content-Type: application/json" \
-d '{
Expand All @@ -166,7 +166,7 @@ curl -X POST https://api.arbuilder.app/api/v1/chat/completions \
### Curl, streaming

```bash
curl -N -X POST https://api.arbuilder.app/api/v1/chat/completions \
curl -N -X POST https://arbuilder.app/api/v1/chat/completions \
-H "Authorization: Bearer arb_xxxxx" \
-H "Content-Type: application/json" \
-d '{
Expand All @@ -183,7 +183,7 @@ from openai import OpenAI

client = OpenAI(
api_key="arb_xxxxx",
base_url="https://api.arbuilder.app/api/v1",
base_url="https://arbuilder.app/api/v1",
)

resp = client.chat.completions.create(
Expand Down Expand Up @@ -220,7 +220,7 @@ import OpenAI from "openai";

const client = new OpenAI({
apiKey: "arb_xxxxx",
baseURL: "https://api.arbuilder.app/api/v1",
baseURL: "https://arbuilder.app/api/v1",
});

const stream = await client.chat.completions.create({
Expand Down