arya2004 / arya2004/Data-Filtering-Chatbot

Introduce abstraction layer for LLM (decouple OpenAI calls)

Open
#11 2 comments 0 reactions 2 assignees Claimed by @roshan9911 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.