PersonaFlow / agentstack

A platform for building configurable, database-backed generative AI agentic assistants.
MIT License
14 stars 0 forks source link

Bug: Add UI Validation or use default to make sure that a model value is set for `agent_type` #234

Closed danorlando closed 3 weeks ago

danorlando commented 4 weeks ago

Not sure if there's any validation being done for the assistant creator, but I accidentally created an assistant without selecting the model/agent_type. This works for the run because it fell back to a default setting, but it caused a key error at the title endpoint and was unable to generate a title because it didn't know what model to use. The user should not be allowed to create an assistant without selecting a model. A simple solution is probably to make the first model listed the default instead of using a "Select agent type" placeholder. While we're add it, I think replacing the label "Agent type" with "Language Model" would be more descriptive.