arya2004 / arya2004/Data-Filtering-Chatbot
Introduce abstraction layer for LLM (decouple OpenAI calls)
Open
enhancement
good first issue
hacktoberfest
hacktoberfest-accepted
python
refactor
- Dominant language
- Python
- Stars
- 2
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
### 🔌 Abstract OpenAI Calls for Better Testing
Direct `openai.chat.completions.create()` calls are deeply coupled into the code.
#### 💡 Suggestion:
* Create an abstract `LLMClient` interface.
* Inject it into your core logic.
* Use a `MockLLMClient` for unit tests.
✅ Makes the app **testable, modular, and CI-ready**.
Contributor guide
Assessment
This issue has not been assessed yet.