Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

### Required

[[1](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/debate/DebatePanel.ts#L325)][[2](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/debate/DebatePanel.ts#L327)][[3](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/EmbeddingModelConfigModal.ts#L98)][[4](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/EmbeddingModelConfigModal.ts#L101)][[5](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/EmbeddingModelConfigModal.ts#L125)][[6](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/rag/RAGService.ts#L253)][[7](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/rag/RAGService.ts#L268)][[8](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/rag/RAGService.ts#L279)][[9](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/modals.ts#L45)][[10](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/modals.ts#L65)][[11](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L138)][[12](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L195)][[13](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L197)][[14](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L209)][[15](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L239)][[16](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L240)][[17](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L255)][[18](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L269)][[19](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L284)][[20](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L392)][[21](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L394)][[22](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L406)][[23](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L436)][[24](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L437)][[25](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L452)][[26](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/KnowledgeBaseView.ts#L463)][[27](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/ChatView.ts#L282)][[28](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/ChatView.ts#L287)][[29](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/ChatView.ts#L294)][[30](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/ChatView.ts#L314)] and more :You should avoid assigning styles via JavaScript or in HTML and instead move all these styles into CSS so that they are more easily adaptable by themes and snippets.


[[1](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/ChatView.ts#L1659)]:Using `innerHTML`, `outerHTML` or similar API's is a security risk. Instead, use the DOM API or the Obsidian helper functions: <https://docs.obsidian.md/Plugins/User+interface/HTML+elements>

[[1](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/ModelManager.ts#L265)][[2](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/ModelManager.ts#L399)][[3](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/ModelManager.ts#L439)][[4](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/ModelManager.ts#L521)][[5](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/ModelManager.ts#L600)][[6](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/ModelManager.ts#L611)][[7](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/ModelManager.ts#L706)][[8](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/ModelManager.ts#L785)][[9](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/main.ts#L504)][[10](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/main.ts#L524)][[11](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/styles-import-test.ts#L12)][[12](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/services/RAGService.ts#L14)]:You should consider limiting the number of `console.log`s in your code, to not pollute the dev console.



---

### Optional

[[1](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/models/EmbeddingModelConfigModal.ts#L123)][[2](https://github.com/n0rvyn/aipilot/blob/535044bd9181b2050e428578705e563c9a248503/src/modals.ts#L166)]:Casting to `any` should be avoided as much as possible.



---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes to your repo, the bot will update the labels on this PR within 6 hours.
If you think some of the required changes are incorrect, please comment with `/skip` and the reason why you think the results are incorrect.