Skip to content

Add config options, default configuration and support for Azure OpenAI#32

Open
itbm wants to merge 1 commit into
deiucanta:mainfrom
itbm:add_config
Open

Add config options, default configuration and support for Azure OpenAI#32
itbm wants to merge 1 commit into
deiucanta:mainfrom
itbm:add_config

Conversation

@itbm
Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown
Collaborator

Supernova3339 commented Apr 5, 2023 via email

@wescrockett
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

kienerj commented Feb 7, 2024

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

@Supernova3339
Copy link
Copy Markdown
Collaborator

Supernova3339 commented Feb 8, 2024 via email

@itbm
Copy link
Copy Markdown
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