Comments (3)
Hi @LittleColin thank you for reaching out to us. Let me confirm - your request is:
for now, we will extract secrets (api_key in most cases) and replace them with environment variables only; however, you want us to provide a parameter to customize the fields to be replaced with environment variables.
We will discuss this feature ask first. On the other hand, we haven't done that support before because the configuration can be complicated to specify fields to be replaced, especially given different type of connections may have different fields.
Besides your workaround to add a post-process step:
- we have a feature that we will respect environment variable of a specific name with a higher priority, then the value in connection yaml
- for example, if the connection name is
my-connection
, you can set an environment variable namedMY_CONNECTION_API_BASE
and we will respect it on serving. - sorry we haven't mentioned this in current doc, but we have a test for this: link
- for example, if the connection name is
- you can also use a CustomConnection and mark all fields you want to replace as secrets - we're hiding all secrets instead of some specific fields.
from promptflow.
Thanks for the response, yes the override appears to work and addresses the feature request. However, the logging could be improved in this area as the myconnection.yaml
content is displayed including the api base URL but with no indication that it has been overridden by an environment var. Also, if there's a connection issue, the error does not show the api base that was being connected to (I cannot see anywhere in the logs that the actual api base is emitted).
Suggest changing the cat of myconnection.yaml to indicate value has been overridden by an env var as would be good to know even on a successful connection.
from promptflow.
Thank you for your suggestion. We will use an internal task to track the log improvement and close this issue first.
from promptflow.
Related Issues (20)
- [BUG] Inconsistent order for dataframe rows when loading run details via SDK HOT 5
- [BUG] pf flow build stopped working HOT 1
- Failed to check if list[str] is a custom strong type: issubclass() arg 1 must be a class HOT 1
- List index out of range error on Open Model LLM Node HOT 2
- [BUG] "(TypeError) expected string or buffer" when running a batch run a flow with langchain python node HOT 3
- [Feature Request] Support setting dimensions in embedding tool. HOT 5
- [BUG] Flow link is broken HOT 3
- [BUG] FutureWarning from fillna call HOT 5
- [BUG]: Basic chat flow raises an error: Failed to serialize inputs or output for flow run because of cannot pickle 'generator' object. HOT 2
- [Feature Request]Support for tool_calls HOT 2
- [BUG] [VSCode Extension] HOT 2
- No versions of azure-cli is compatible with promptflow 1.8.0 with azure HOT 6
- [Feature Request] Enhance Testing with Serverless Computing Options HOT 1
- [BUG] - pf.flow.test failed with PythonLoadError: Failed to load python module from file ... (NameError) name 'Document' is not defined HOT 5
- [Document] Add promptflow endpoint api document HOT 1
- [Feature Request] Allow configuration of log format HOT 9
- [BUG] [VSCode Extension] VectorDB Index Lookup doesn't take the config.json variables into consideration HOT 5
- [Feature Request] Support for recently available Azure OpenAI embedding models & dimensions HOT 1
- [BUG] Unable to make azure openai connection HOT 7
- [BUG] Building executable app fails on Linux machine HOT 2
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.