-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #32. Enable Users / Deployments to change the host where OpenAI API calls are directed to. This enables project like [Helicone](https://www.helicone.ai/) (Observability of LLM ops) for tracking prompt/responses quality in real-time. Configuration: - User: App > Settings > Advanced > API host (e.g. "oai.hconeai.com") - Deployment: set the 'API_API_HOST=...' environment variable User takes precedence over deployment over api.openai.com. Realtime switching in chat apps works well. Note: the Helicone team is fixing dashboard reporting for 'streaming' over the /v1/chat/completions endpoint.
- Loading branch information
Showing
6 changed files
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Set the backend API key for OpenAI, so that users don't have to provide one | ||
OPENAI_API_KEY= | ||
# [Recommended for local deployments] Backend API key for OpenAI, so that users don't have to provide one | ||
OPENAI_API_KEY= | ||
|
||
# [Not needed] Set the backend host for the OpenAI API, to enable platforms such as Helicone | ||
OPENAI_API_HOST= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7154db7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextjs-chatgpt-app – ./
nextjs-chatgpt-app-git-main-enricoros.vercel.app
gpt4.enrico.ai
nextjs-chatgpt-app-enricoros.vercel.app