Refactor: Convert all relative bot imports to use project aliases
未關閉
enhancement
- 主要語言
- JavaScript
- 星號
- 16.5k
- 分支
- 1.7k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Suggestion:** Use the project's alias (`@/bots/openai/...`) instead of relative paths to import new bot modules for consistency with other imports. [general, importance: 5]
```diff
-import OpenAIAPI41Bot from "./openai/OpenAIAPI41Bot";
-import OpenAIAPI41MiniBot from "./openai/OpenAIAPI41MiniBot";
-import OpenAIAPI41NanoBot from "./openai/OpenAIAPI41NanoBot";
+import OpenAIAPI41Bot from "@/bots/openai/OpenAIAPI41Bot";
+import OpenAIAPI41MiniBot from "@/bots/openai/OpenAIAPI41MiniBot";
+import OpenAIAPI41NanoBot from "@/bots/openai/OpenAIAPI41NanoBot";
```
_Originally posted by @PeterBot in https://github.com/ai-shifu/ChatALL/pull/1005#discussion_r2051138618_
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。