AOSSIE-Org / AOSSIE-Org/DebateAI
[BUG]: Fix missing fmt.Sprintf argument in debate bot opening-statement prompt
- Ngôn ngữ chính
- TypeScript
- Star
- 84
- Fork
- 198
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 30
Mô tả
### Bug Description
The opening-statement prompt in backend/services/debatevsbot.go contains 13 %s format placeholders but supplies only 12 arguments to fmt.Sprintf.
This causes Go’s vet check to fail and may insert the formatting artifact %!s(MISSING) into prompts sent to the Gemini model. As a result, the AI receives malformed instructions, potentially reducing the quality of its opening statements.
### Steps to Reproduce
1. Clone and open the DebateAI repository.
2. Navigate to the backend directory:
cd backend
3. Run the services test command:
go test ./services
4. Observe the following error:
services/debatevsbot.go:191:4: fmt.Sprintf format %s reads arg #13, but call has 12 args
FAIL arguehub/services
5. Inspect the opening-statement fmt.Sprintf call in backend/services/debatevsbot.go and confirm that the format string has more placeholders than supplied arguments.
### Logs and Screenshots
### Environment Details
_No response_
### Impact
Medium - Feature works but has issues
### Code of Conduct
- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates
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
Hướng nghiên cứu
Open backend/services/debatevsbot.go and inspect the opening-statement fmt.Sprintf call around the reported line, comparing its 13 placeholders with the supplied arguments. Run cd backend && go test ./services; done means the format-check failure is resolved and the services tests pass without a missing-format artifact.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- go
- Lĩnh vực
- backend
- Loại issue
- Lỗi
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 90/100