Commit 38dd5348

Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
2024-09-09 18:17:21
docs(readme): improve custom `base_url` example (#1694)
OPENAI_BASE_URL defaults to https://api.openai.com/v1, so if you add a replacement and forget to append the /v1, it will result in 404s
1 parent 93aa548
Changed files (1)
README.md
@@ -567,7 +567,7 @@ from openai import OpenAI, DefaultHttpxClient
 
 client = OpenAI(
     # Or use the `OPENAI_BASE_URL` env var
-    base_url="http://my.test.server.example.com:8083",
+    base_url="http://my.test.server.example.com:8083/v1",
     http_client=DefaultHttpxClient(
         proxies="http://my.test.proxy.example.com",
         transport=httpx.HTTPTransport(local_address="0.0.0.0"),