Commit 7191b51
committed
Add support for Ollama provider
The OpenAI compatible model doesn't work with Ollama. Add another
provider for it.
The code there was generated from a prompt to modify src/ai/openai.rs
to use an Ollama-compatible API.
Assisted-by: qwen2.6_claude_27B
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>1 parent 00d4a11 commit 7191b51
5 files changed
Lines changed: 804 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
292 | 295 | | |
293 | 296 | | |
294 | 297 | | |
| |||
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
475 | 491 | | |
476 | 492 | | |
477 | 493 | | |
| |||
556 | 572 | | |
557 | 573 | | |
558 | 574 | | |
| 575 | + | |
559 | 576 | | |
560 | 577 | | |
561 | 578 | | |
| |||
0 commit comments