Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 40e996b

Browse files
authored
DEV: converts llm admin page to use form kit (#1099)
This also converts the quota editor, and the quota modal.
1 parent 43c56d7 commit 40e996b

File tree

8 files changed

+567
-631
lines changed

8 files changed

+567
-631
lines changed

assets/javascripts/discourse/admin/models/ai-llm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export default class AiLlm extends RestModel {
2525
return attrs;
2626
}
2727

28-
async testConfig() {
29-
return await ajax(`/admin/plugins/discourse-ai/ai-llms/test.json`, {
30-
data: { ai_llm: this.createProperties() },
28+
async testConfig(llmConfig) {
29+
return await ajax("/admin/plugins/discourse-ai/ai-llms/test.json", {
30+
data: { ai_llm: llmConfig ?? this.createProperties() },
3131
});
3232
}
3333
}

0 commit comments

Comments
 (0)