diff --git a/README.md b/README.md index 0f02f58..5fd628a 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ Server starts at `http://localhost:8081/v1`. ### curl +#### bash / macOS / Linux + ```bash curl http://localhost:8081/v1/chat/completions \ -H "Content-Type: application/json" \ @@ -49,6 +51,14 @@ curl http://localhost:8081/v1/chat/completions \ -d '{"model":"gemini-3.5-flash","messages":[{"role":"user","content":"Hello!"}]}' ``` +#### PowerShell (Windows) + +```powershell +curl.exe --% http://127.0.0.1:8081/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-your-key" -d "{\"model\":\"gemini-3.5-flash\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello!\"}]}" +``` + +> Note: On Windows PowerShell, use `curl.exe` and `--%` so PowerShell does not reinterpret JSON quoting or curl options. + ### OpenAI Python SDK ```python