Skip to content

Add Groq AI provider support#27

Open
f-liva wants to merge 2 commits into
clucraft:mainfrom
f-liva:main
Open

Add Groq AI provider support#27
f-liva wants to merge 2 commits into
clucraft:mainfrom
f-liva:main

Conversation

@f-liva
Copy link
Copy Markdown

@f-liva f-liva commented Mar 4, 2026

Summary

Add Groq as an AI provider option for price extraction, verification, and arbitration.

Changes

  • Backend: Add groq-sdk dependency and implement Groq provider functions
  • Database: Add groq_api_key and groq_model columns to users table
  • Frontend: Add Groq configuration in Settings page with model selection
  • Support for models: llama-3.3-70b-versatile (default), llama-3.1-8b-instant, mixtral-8x7b-32768, gemma2-9b-it

Testing

  • Tested registration and login flow
  • Verified Groq API integration works correctly
  • All extraction/verification/arbitration functions implemented following existing patterns

Resolves: #26

Federico Liva and others added 2 commits March 4, 2026 10:36
- Add groq-sdk dependency to backend
- Add groq_api_key and groq_model columns to users table
- Implement extractWithGroq, verifyWithGroq, verifyStockStatusWithGroq, arbitrateWithGroq functions
- Add Groq settings to backend routes with test endpoint
- Add Groq provider option to frontend Settings UI with model selection
- Support for llama-3.3-70b-versatile, llama-3.1-8b-instant, mixtral-8x7b-32768, gemma2-9b-it models

Resolves: clucraft#26

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
mikeknight85 added a commit to mikeknight85/PriceStalker that referenced this pull request Apr 20, 2026
Version bump across version.json, package.json (backend+frontend),
package-lock.json, and service worker cache name. CHANGELOG entry
summarizes the fork scope. CI workflow now tags images with semver
versions on tag push (ghcr.io/.../pricestalker-backend:1.1.0 etc.)
alongside the floating :latest.

Also fixes a runtime bug surfaced during pre-release smoke testing:
the upstream Groq PR clucraft#27 only added groq_{api_key,model} columns to
database/init.sql, which runs on fresh postgres volumes only. Users
migrating from upstream PriceGhost (whose volume predates the Groq PR)
never got those columns, causing 'column groq_api_key does not exist'
on every settings load/save.

Moved the groq column migration into backend/src/index.ts startup
migrations alongside the openrouter ones, so it runs on every boot
idempotently.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Groq as AI extraction provider (free API tier available)

1 participant