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

Cannot use a deployed prompt flow in web app #934

Closed
Tanishk1 opened this issue Jun 17, 2024 · 4 comments
Closed

Cannot use a deployed prompt flow in web app #934

Tanishk1 opened this issue Jun 17, 2024 · 4 comments
Assignees
Labels
bug Something isn't working stale

Comments

@Tanishk1
Copy link

When I set the below environment variables to use a deployed prompt flow, it doesn't work in the web app as the web app is deployed normally as if it ignores these specific environment variables (other environment variables work). Is there anything else I need to do for my prompt flow to work?

Chat with data: Prompt flow API

USE_PROMPTFLOW=True
PROMPTFLOW_ENDPOINT=redacted
PROMPTFLOW_API_KEY=redacted
PROMPTFLOW_RESPONSE_TIMEOUT=120
PROMPTFLOW_REQUEST_FIELD_NAME=query
PROMPTFLOW_RESPONSE_FIELD_NAME=reply
PROMPTFLOW_CITATIONS_FIELD_NAME=documents

@Tanishk1 Tanishk1 added the bug Something isn't working label Jun 17, 2024
@abhahn abhahn self-assigned this Jun 26, 2024
@DOliana
Copy link
Contributor

DOliana commented Jul 6, 2024

Hi @Tanishk1. I had the same issue and the reason is that promptflow is not used when AZURE_OPENAI_STREAM is set to true (default value). Set this to false and prompt flow will be used. (I am preparing a PR to fix this)

@abhahn
Copy link
Member

abhahn commented Jul 10, 2024

Hi @Tanishk1 , I have just merged @DOliana 's PR. Can you check to see if this solves your issue?

Copy link

github-actions bot commented Sep 9, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Sep 9, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

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

No branches or pull requests

3 participants