mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-16 11:36:23 +08:00
* REFACTOR: Migrate Personas' form to FormKit We re-arranged fields into sections so we can better differentiate which options are specific to the AI bot. * few form-kit improvements https://github.com/discourse/discourse/pull/31934 --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
17 lines
385 B
Text
17 lines
385 B
Text
import { hash } from "@ember/helper";
|
|
import ComboBox from "select-kit/components/combo-box";
|
|
|
|
const AiLlmSelector = <template>
|
|
<ComboBox
|
|
@value={{@value}}
|
|
@content={{@llms}}
|
|
@onChange={{@onChange}}
|
|
@options={{hash
|
|
filterable=true
|
|
none="discourse_ai.ai_persona.no_llm_selected"
|
|
}}
|
|
class={{@class}}
|
|
/>
|
|
</template>;
|
|
|
|
export default AiLlmSelector;
|