Commit 7f3b729
committed
feat: add xAI provider, hybrid web search, and Tavily/Perplexity providers
- Add XaiProvider using Responses API with native web_search passthrough
- Add native search passthrough for Anthropic and xAI providers with
prefer_native config toggle to skip client-side web_search tool
- Add Tavily and Perplexity as search provider options alongside SearXNG
and Brave, with answer synthesis support
- Upgrade web_fetch to use readability crate for HTML content extraction
with regex fallback, plus SSRF protection (private IP/hostname blocking)
- Add persistent search usage stats (search_stats.json) and session-level
search tracking across CLI, desktop GUI, Telegram, and HTTP API
- Add `localgpt search stats` CLI command
- Add xAI provider configuration (providers.xai) with env var expansion1 parent 30c7e31 commit 7f3b729
17 files changed
Lines changed: 1986 additions & 129 deletions
File tree
- crates
- cli/src
- cli
- desktop/views
- core
- src
- agent
- tools
- config
- server/src
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
5 | 18 | | |
6 | 19 | | |
7 | 20 | | |
| |||
0 commit comments