Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OPENAI_BASE_URL enviroment variable #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tiero
Copy link

@tiero tiero commented Nov 15, 2023

Hello! I added the possibility to pass the base path for the OpenAI endpoint, as an environment variable when running the node process. If nothing is passed the SDK will fallback to the OpenAI endpoint.

eg.

# replace the environment variable with the right endpoint
export OPENAI_BASE_URL=https://llama-2-13b-chat.demo.prem.ninja/v1 

# run the Node.js process
node main.js 

This way it's easy to switch from GPT4 to other compatible endpoints such as the ones exposed by the Prem Desktop App

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant