ai-shifu / ai-shifu/ChatALL

Refactor: Convert all relative bot imports to use project aliases

未關閉
#1,007 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。