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

Endpoint test fails due to missing API key #132

Closed
phoevos opened this issue Jun 3, 2024 · 1 comment
Closed

Endpoint test fails due to missing API key #132

phoevos opened this issue Jun 3, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@phoevos
Copy link

phoevos commented Jun 3, 2024

After completing deployment I can see the endpoint on AI Studio. Following the instructions in the README I proceed to test it with the following input:

{"question": "Tell me about hiking shoes", "customerId": "2", "chat_history": []}

The above produces an error, however, triggered during the instantiation of the AzureOpenAIModelConfiguration object. As seen in the logs:

"Execution failure in 'get_response': (InvalidConnectionError) AzureOpenAIModel parameters are incomplete. Please ensure azure_endpoint, api_version, and api_key are provided."

Although we do explicitly provide the version and endpoint here, we don't do the same for the API key. In fact, inspecting my local azd env, the value of AZURE_OPENAI_API_KEY is not set. This feels like something that should be part of the postprovision script. Diving deeper, I noticed that a relevant looking key (is it the same one?) used to be set among others here prior to the May 2024 updates. Why was this dropped?

I'm currently using the following package versions:

prompt_toolkit==3.0.45
promptflow==1.10.0
promptflow-azure==1.10.0
promptflow-core==1.10.0
promptflow-devkit==1.10.0
promptflow-evals==0.3.0
promptflow-tools==1.4.0
promptflow-tracing==1.10.0
@cassiebreviu cassiebreviu self-assigned this Jun 5, 2024
@cassiebreviu cassiebreviu added the bug Something isn't working label Jun 5, 2024
@cassiebreviu
Copy link
Collaborator

this should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants