You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/01-usage-openai.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,15 +30,20 @@ An API key can be generated in your [OpenAI account](https://platform.openai.com
30
30
31
31
*Optional* - If your OpenAI account uses multiple organizations, set the environment variable `OPENAI_ORGANIZATION` to the one used for your app.
32
32
33
+
### Endpoint
34
+
35
+
It is not necessary to specify the endpoint url if using the default OpenAI service. If you do need to point to a different endpoint set the environment variable `OPENAI_API_ENDPOINT` for example: *https://myendpoint.my-openai.com*
36
+
33
37
### Options
34
38
35
-
Alternatively the `api-key` and/or `organization` can be passed in the `options` argument of each api function
39
+
Alternatively the `api-key` and/or `organization`and/or `api-endpoint`can be passed in the `options` argument of each api function
0 commit comments