ai-shifu / ai-shifu/ChatALL

Refactor: Convert all relative bot imports to use project aliases

Đang mở
#1,007 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
16.5k
Fork
1.7k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.