Skip to content

[FEATURE] AI 1 : Provider Abstraction Layer (Anthropic, Groq, Gemini) #80

@TFT444

Description

@TFT444

Objective

Build the provider abstraction layer that handles communication
with AI APIs. This is the foundation all other AI features depend on.

What needs to be built

  • api/services/ai_provider.py
  • Single get_completion(provider, api_key, prompt) function
  • Support providers: anthropic, groq, gemini
  • Validate provider name, raise clear error if unsupported
  • Handle rate limits, invalid keys and network failures gracefully
  • No API keys stored or logged anywhere

Acceptance criteria

  • Works end to end with at least one provider
  • Invalid provider returns a clear error
  • Invalid API key returns a clear error, does not crash
  • No keys stored server-side

Priority

High

Assignees

@TFT444

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issuePerfect for first time contributors
No fields configured for Feature.

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions