mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-16 11:36:23 +08:00
* Use AR model for embeddings features * endpoints * Embeddings CRUD UI * Add presets. Hide a couple more settings * system specs * Seed embedding definition from old settings * Generate search bit index on the fly. cleanup orphaned data * support for seeded models * Fix run test for new embedding * fix selected model not set correctly
17 lines
486 B
JavaScript
17 lines
486 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default class AdminPluginsShowDiscourseAiEmbeddingsNew extends DiscourseRoute {
|
|
async model() {
|
|
const record = this.store.createRecord("ai-embedding");
|
|
record.provider_params = {};
|
|
return record;
|
|
}
|
|
|
|
setupController(controller, model) {
|
|
super.setupController(controller, model);
|
|
controller.set(
|
|
"allEmbeddings",
|
|
this.modelFor("adminPlugins.show.discourse-ai-embeddings")
|
|
);
|
|
}
|
|
}
|