Comments (3)
Hi @firgavin, thanks for reaching us, actually in the #3236 we have a friend raising the similar problem with you, but I didn't reproduce the problem.
If you are using dockerfile exported by 'pf flow build', could you please check the connection file from the output directory? My test output looks like:
And I ran it with docker run -p 8080:8080 -e AZURE_OPEN_AI_CONNECTION_API_KEY=.... name
, the flow can return result successfully.
from promptflow.
@brynn-code Thank you for check this issue. I did search through all open issues but somehow missed that particular one. I've noticed that this feature works correctly only with 'flow serve', as you mentioned in #3236. However, I'm curious why it doesn't work similarly for 'flow test' or 'flow run'? In my scenario, I need to use "flow run" with the same connection management in this container.
from promptflow.
At the early stages of design, we introduced this for 'flow serve' is because we'd like user have a more fluent experience when deploying the flow, as it is frustrated if they need to deploy to several region and then create connection for each one, it will be better if they only have to configure environment variables for each deployment.
For the 'flow test' and 'flow run', usually we assuming that user is doing this locally on their machine, they are still authoring the flow, in this case, we encourage user leverage our connection to store api keys, the stored key was encryted, and encryption key was managed by system ( for example, in windows we will store encrytion key to Credential Manager ), and promptflow package itself will not stored the value anywhere.
Please be careful about it, if user remove it manually, then they can't use connection anymore as promptflow can't decrypt existing connections, unless delete the whole sqlite db.
from promptflow.
Related Issues (20)
- [BUG] Error when running AOAI function calling example HOT 3
- [BUG] Potential incompatible with mlflow>=2.13.1 HOT 2
- Integrate a APIM in front of deployments in PromptFlow HOT 1
- [Feature Request] Hiding Sensitive Inputs HOT 1
- [BUG] Promptflow tracing is not compatible with code-based Azure Web Apps HOT 3
- [BUG] PFClient.run using flow with AsyncIterator raises `TypeError: cannot pickle '_thread.lock' object`
- [BUG] [VSCode Extension]Embedding Tool Error HOT 3
- Set Trace Destination fails with Cosmos DB is disabled error HOT 3
- [BUG] Do now show warning messages from werkzeug HOT 1
- [Feature Request]The server shuts down after one hour of inactivity, which is not good HOT 3
- I need to serve to 0.0.0.0 HOT 3
- [BUG] Confusing, incomplete tutorial HOT 2
- [BUG] [promptflow-evals] Failed to invoke the Azure CLI when running evaluation
- [Feature Request] Allow disabling tracing for large intermediate objects HOT 3
- [BUG] [promptflow-evals] Adversarial simulator cannot generate samples with jailbreak correctly if `max_simulation_results` is large. HOT 3
- [BUG] [promptflow-evals] The `AdversarialSimulator` object cannot be reused. HOT 1
- [Feature Request] Official example for streaming PromptFlow using AutoGen HOT 2
- Deploy fails to Azure Container Apps HOT 1
- [BUG] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 80: invalid start byte HOT 5
- [Feature Request] LLM output token probabilities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promptflow.