-
Hi, We would like to dynamically set the model parameters that are in config.json. (Basically by loading them from an external source so data scientists can tweak without engineering having to redeploy) Is there an easy way of doing that? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @mpriem, as far as I know there isn't a way to dynamically set parameters in the way you are saying. I have a few suggestions but none of them are an exact match to your ask:
prompt.config.completion = {
"temperature": process.env.TEMPERATURE,
// other params here...
} This is a way to set the options as environment keys loading from an external file. However, this would still need a deployment for that file that's being updated.
Hope that helps! |
Beta Was this translation helpful? Give feedback.
The planner
defaultPrompt
can be a function and therefore dynamically set the config like so:teams-ai/js/samples/04.ai-apps/h.datasource-azureOpenAI/src/app.ts
Lines 38 to 58 in a441b82