diff --git a/.discourse-compatibility b/.discourse-compatibility index 28dd8467..f1303357 100644 --- a/.discourse-compatibility +++ b/.discourse-compatibility @@ -1,3 +1,4 @@ +< 3.5.0.beta2-dev: de8624416a15b3d8e7ad350b083cc1420451ccec < 3.5.0.beta1-dev: bdef136080074a993e7c4f5ca562edc31a8ba756 < 3.4.0.beta4-dev: a53719ab8eb071459f215227421b3ea4987e5f87 < 3.4.0.beta4-dev: 20612fde52d3f740cad64823ef8aadb0748b567f diff --git a/assets/javascripts/discourse/components/ai-embedding-editor.gjs b/assets/javascripts/discourse/components/ai-embedding-editor.gjs index ff6fbe02..d23edd6e 100644 --- a/assets/javascripts/discourse/components/ai-embedding-editor.gjs +++ b/assets/javascripts/discourse/components/ai-embedding-editor.gjs @@ -493,8 +493,8 @@ export default class AiEmbeddingEditor extends Component { {{! provider-specific content }} {{#if this.currentProvider}} - {{#if data.provider_params}} - + + {{#each-in providerData as |name|}} {{#let (get this.providerParams name) as |params|}} {{#if params}} {{/if}} {{/let}} - - {{/if}} + {{/each-in}} + {{/if}} @@ -550,33 +550,24 @@ export default class AiEmbeddingEditor extends Component { {{#if this.displayTestResult}} - - - - {{#if this.testResult}} -
- {{icon "check"}} - {{i18n "discourse_ai.embeddings.tests.success"}} -
- {{else}} -
- {{icon "xmark"}} - {{this.testErrorMessage}} -
- {{/if}} -
-
-
+ + + {{#if this.testResult}} +
+ {{icon "check"}} + {{i18n "discourse_ai.embeddings.tests.success"}} +
+ {{else}} +
+ {{icon "xmark"}} + {{this.testErrorMessage}} +
+ {{/if}} +
+
{{/if}} {{/if}} diff --git a/assets/javascripts/discourse/components/ai-llm-editor-form.gjs b/assets/javascripts/discourse/components/ai-llm-editor-form.gjs index f78ec8e3..b7fa307f 100644 --- a/assets/javascripts/discourse/components/ai-llm-editor-form.gjs +++ b/assets/javascripts/discourse/components/ai-llm-editor-form.gjs @@ -334,32 +334,36 @@ export default class AiLlmEditorForm extends Component { - - {{#let - (get (this.metaProviderParams data.provider) name) - as |params| - }} - - {{#if (eq params.type "enum")}} - - {{#each params.values as |option|}} - {{option.name}} - {{/each}} - - {{else if (eq params.type "checkbox")}} - - {{else}} - - {{/if}} - - {{/let}} + + {{#each-in providerParamsData as |name|}} + {{#let + (get (this.metaProviderParams data.provider) name) + as |params| + }} + + {{#if (eq params.type "enum")}} + + {{#each params.values as |option|}} + {{option.name}} + {{/each}} + + {{else if (eq params.type "checkbox")}} + + {{else}} + + {{/if}} + + {{/let}} + {{/each-in}} - - - {{#if this.testResult}} -
- {{icon "check"}} - {{i18n "discourse_ai.llms.tests.success"}} -
- {{else}} -
- {{icon "xmark"}} - {{this.testErrorMessage}} -
- {{/if}} -
-
-
+ + + {{#if this.testResult}} +
+ {{icon "check"}} + {{i18n "discourse_ai.llms.tests.success"}} +
+ {{else}} +
+ {{icon "xmark"}} + {{this.testErrorMessage}} +
+ {{/if}} +
+
{{/if}}