| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…essenger to the provider layer
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Sorry, something went wrong.
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Sorry, something went wrong.
|
hey @greptileai, please re-review the PR |
Sorry, something went wrong.
…the provider loop
|
hey @greptileai, please re-review the PR |
Sorry, something went wrong.
…ut cannot fail downstream
|
hey @greptileai, please re-review the PR |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What
All four LLM features (AI titles/summaries/chapters, transcript translation, docs Ask AI, and the support messenger) now go through one provider-agnostic layer built on the Vercel AI SDK (apps/web/lib/ai/), replacing per-feature hand-rolled Groq/OpenAI/Anthropic clients. groq-sdk is removed.
Self-hosters can now pick any provider via env:
assemblyai routes through the AssemblyAI LLM Gateway using the existing ASSEMBLY_API_KEY, so one key can cover transcription and AI features. It is never auto-detected — transcription-only instances don't start incurring LLM charges unless they opt in.
Behavior at merge: unchanged
With AI_PROVIDER unset (the default everywhere), providers are auto-detected per role to reproduce the current behavior exactly: generation prefers Groq → OpenAI → Anthropic (same gpt-oss-120b / gpt-4o-mini), chat features prefer Anthropic → OpenAI → Groq (same claude-sonnet-5). Later providers in each chain are automatic fallbacks — previously only summaries had any fallback at all.
Design notes
Verification
Docs
self-hosting.mdx and docker-compose.coolify.env.example document all providers, the per-role auto-detect order, and the EU-gateway caveat.
Greptile Summary
The PR centralizes AI generation, translation, docs Ask AI, and messenger behavior behind a provider-agnostic Vercel AI SDK layer with AssemblyAI gateway and OpenAI-compatible endpoint support.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (4): Last reviewed commit: "fix(web): sanitize map-reduce keyPoints ..." | Re-trigger Greptile
Context used (3)