Go: implement provider: Ollama (#14580)

### What problem does this PR solve?

implement `Ollama` provider

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Refactoring

---------

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Haruko386
2026-05-06 12:03:58 +08:00
committed by GitHub
parent 28388993a4
commit cd54c08e84
4 changed files with 432 additions and 127 deletions

8
conf/models/ollama.json Normal file
View File

@@ -0,0 +1,8 @@
{
"name": "ollama",
"url_suffix": {
"chat": "chat/completions",
"models": "models"
},
"class": "local"
}