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 config options, default configuration and support for Azure OpenAI #32

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

Conversation

itbm
Copy link

@itbm itbm commented Mar 29, 2023

Added config options, default configuration via a config.json file, plus support for custom endpoints including Azure OpenAI.

Closes #21 and #16

@wescrockett
Copy link

I currently have my chatbot accessible through Cloudflare tunnels with authentication. On a network that blocks *.openai.com, when I enter my API key, it gets blocked when validating. I assume adding it to the config file would bypass the initial check... at that point, does the server hosting Chatbot handle all communications with openai.com or is the client browser still making calls to openai?

@Supernova3339
Copy link
Collaborator

Supernova3339 commented Apr 5, 2023 via email

@wescrockett
Copy link

Ah, yeah, i understand that for sure. Let me rephrase though (meant it as a general question):

Other than validating the API key, does the server running the interface act as a proxy for the API or are the API calls still made client side? I am running the interface on a home server and accessing the server from a network that has openai.com blocked. My hope was that all requests/responses to/from api.openai.com would be handled server side. If that isn't how this is made, that's fine, just trying to make sure I understand it.

Thank you.

@zekker6
Copy link

zekker6 commented Apr 6, 2023

@wescrockett This is a client-side application, so all requests will be executed client-side. Unfortunately, In your case that will mean that requests will be blocked.

@wescrockett
Copy link

This is a client-side application, so all requests will be executed client-side. Unfortunately, In your case that will mean that requests will be blocked.

Thank you for the clarification.

@kienerj
Copy link

kienerj commented Feb 7, 2024

has this been merged? Alternative end-point to openai would be very helpful to have.

@Supernova3339
Copy link
Collaborator

Supernova3339 commented Feb 8, 2024 via email

@itbm
Copy link
Author

itbm commented Feb 23, 2024

has this been merged? Alternative end-point to openai would be very helpful to have.

I don't think this PR is required anymore. It looks like my changes were copied and merged in e60272e

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.

Option to configure API key for instance
5 participants