-
Notifications
You must be signed in to change notification settings - Fork 1
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
Static community assistants #319
base: main
Are you sure you want to change the base?
Conversation
…munity-assistants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, in addition static_bots.ts
can be deleted
quick_prompts= self._get_quick_prompt_list(index), | ||
temperature= float(getenv(f"{prefix}TEMPERATURE", 0.7)), | ||
max_output_tokens= int(getenv(f"{prefix}MAX_TOKENS", 100)), | ||
id = str(getenv(f"{prefix}ID", uuid())), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't provide an a default id with uuid()
if no id is present in the env. Should throw an error in this case.
Otherwise we generate a new random id every server restart and we will have a lot of duplicated community assistents.
@@ -76,13 +79,24 @@ export const Layout = () => { | |||
console.error("Keine Modelle vorhanden"); | |||
} | |||
setLLM(result.models.find(model => model.llm_name == llm_pref) || result.models[0]); | |||
for (let bot of result.frontend.community_assistants) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
Description
.env
createBotConfig
overwrites existing id