Commit a53a843
committed
feat: Replace Gemini SDK with OpenAI-compatible LLM API
- Replaced Google Gemini SDK with generic OpenAI-compatible /v1/chat/completions API (Ktor HTTP)
- Default provider: Groq (free tier) with LLaMA 3 70B model
- Added configurable API endpoint URL in settings
- Supported models: LLaMA 3 70B/8B, Mixtral 8x7B, Gemma 2 9B
- Compatible with Groq, OpenAI, Ollama, LM Studio, any OpenAI-compatible API
- Removed com.google.ai.client.generativeai:generativeai dependency
- Updated UI strings and API key guide1 parent cb684f8 commit a53a843
9 files changed
Lines changed: 453 additions & 292 deletions
File tree
- app
- src/main
- java/com/babelsoftware/airnote
- data/repository
- domain/model
- presentation/screens
- home/viewmodel
- settings/settings
- res/values
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
Lines changed: 18 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments