From 2332e9e79b87e59a84226f7640b6b44ffdd25526 Mon Sep 17 00:00:00 2001 From: Manuel Esteban Morales Zuarez Date: Fri, 19 Jun 2026 14:40:57 -0400 Subject: [PATCH] docs: add PowerShell curl example to README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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