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

Why it requires always an OPENAI_API_KEY and does not switch zu Open-AI-Azure #99

Closed
ChristophEckerle opened this issue Dec 6, 2023 · 3 comments

Comments

@ChristophEckerle
Copy link

ChristophEckerle commented Dec 6, 2023

  1. If I start the project out of the box with project tailored .env file, which has no "OPENAI_API_KEY", it always requires the key during booting the project. The workaround by giving him a dummy value works for that step: "OPENAI_API_KEY: your_secret_key_here".

  2. After creating a bot and selecting via the GUI, GizmoAgentType="GPT 4 (Azure OpenAI)", see below part of the json payload from the client for the configured agents:

configurable : {agent_type: "GPT 4 (Azure OpenAI)",…} agent_type : "GPT 4 (Azure OpenAI)" system_message : "You are a helpful assistant for our customer service team to retrieve product data information "

It still requires the OpenAI key:

openai.error.AuthenticationError: Incorrect API key provided: my_dummy_key. You can find your API key at https://platform.openai.com/account/api-keys. backend_1

The Azure OpenAI .env variables get somehow not sourced:

AZURE_OPENAI_DEPLOYMENT_NAME: your_secret_here AZURE_OPENAI_API_BASE: your_secret_here AZURE_OPENAI_API_VERSION: your_secret_here AZURE_OPENAI_API_KEY: your_secret_here

@j-paris
Copy link

j-paris commented Jan 26, 2024

Any news on this topic (OPEN_AI_KEY always required and how to switch to Azure Open AI)?

@krlng
Copy link

krlng commented Feb 10, 2024

+1

@mkorpela
Copy link
Collaborator

mkorpela commented Apr 6, 2024

should be now fixed #270

@mkorpela mkorpela closed this as completed Apr 6, 2024
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

No branches or pull requests

4 participants