Dynamic Prompt Change according to model name #1835
Replies: 4 comments 8 replies
-
Hi @Arshil-Akkala, Can you provide more information about the use case / the problem you are trying to solve / your workflow here? Technically, that would be possible yes. You could write your code so that when a certain model is selected in the UI, ( But I'd be able to provide better help if you could explain more the use case. Best, |
Beta Was this translation helpful? Give feedback.
-
Umm there is still one thing bugging me, in the backend we are making changes to handle that. But how will the UI know the change being made, I mean the UI also has to render the prompt according to the model change right.? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I tried that, it doesn't seem to be quite that way, or may be my approach is incorrect.. ` CUSTOM_LLMS = [ PROMPT_TEMPLATES = { DEFAULT_KEYS = { ag.init() @ag.entrypoint
` |
Beta Was this translation helpful? Give feedback.
-
Is it possible to dynamically load respective prompts/ prompt templates based on the model_name selected on UI? Will it include a UI change or is there any provision available for the same?
Beta Was this translation helpful? Give feedback.
All reactions