Skip to content

Commit 31aaaf8

Browse files
feat(provider): Add support for Ollama Cloud (#31)
* feat(provider): Add support for Ollama Cloud - Download latest OpenAPI spec with Ollama Cloud provider - Generate types with OllamaCloud constant - Update README to list Ollama Cloud as supported provider - Add comprehensive tests for Ollama Cloud functionality - Deprecate A2A methods (removed from OpenAPI spec) - Preserve A2A types for backward compatibility 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Eden Reich <edenreich@users.noreply.github.com> * chore(sdk): Remove deprecated A2A functionality Removed ListAgents() and GetAgent() methods and all related tests. The A2A functionality was deprecated when it was removed from the OpenAPI specification. This change completes the cleanup by removing the deprecated code entirely. Changes: - Removed ListAgents() and GetAgent() from Client interface - Removed method implementations (73 lines from sdk.go) - Removed all A2A tests (428 lines from sdk_test.go) - All tests passing, linter clean Co-authored-by: Eden Reich <edenreich@users.noreply.github.com> * chore: Run task tidy Signed-off-by: Eden Reich <eden.reich@gmail.com> * chore(deps): Bump dependencies Signed-off-by: Eden Reich <eden.reich@gmail.com> * chore: Add golangci-lint to flox env Signed-off-by: Eden Reich <eden.reich@gmail.com> * chore: Allow minor bumps Signed-off-by: Eden Reich <eden.reich@gmail.com> --------- Signed-off-by: Eden Reich <eden.reich@gmail.com> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
1 parent 9b75d24 commit 31aaaf8

28 files changed

Lines changed: 744 additions & 893 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM mcr.microsoft.com/devcontainers/go:1-1.24-bookworm
22

33
ENV ZSH_CUSTOM=/home/vscode/.oh-my-zsh/custom \
4-
GOLANG_CI_LINT_VERSION=v2.1.6 \
5-
TASK_VERSION=v3.44.0
4+
GOLANG_CI_LINT_VERSION=v2.6.0 \
5+
TASK_VERSION=v3.45.4
66

77
# Install common tools
88
RUN apt-get update && \

.flox/env/manifest.lock

Lines changed: 158 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.flox/env/manifest.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version = 1
2+
23
[install]
34
go.pkg-path = "go"
4-
go.version = "^1.24"
5+
go.version = "^1.25.2"
56

7+
golangci-lint.pkg-path = "golangci-lint"
8+
golangci-lint.version = "^2.6.0"

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@ jobs:
1313
runs-on: ubuntu-24.04
1414
name: Build
1515
steps:
16-
- uses: actions/checkout@v4.2.2
16+
- uses: actions/checkout@v5
17+
with:
18+
persist-credentials: false
1719

1820
- name: Set up Go
19-
uses: actions/setup-go@v5.5.0
21+
uses: actions/setup-go@v6
2022
with:
21-
go-version: "1.24"
23+
go-version-file: 'go.mod'
2224
cache: true
2325

24-
- name: Install GolangCI Lint
26+
- name: Install golangci-lint
2527
run: |
26-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v2.1.6
28+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v2.6.0
2729
2830
- name: Run GolangCI Lint
2931
run: golangci-lint run --timeout 5m

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ Each example includes its own README with specific instructions and explanations
608608
The SDK supports the following LLM providers:
609609

610610
- Ollama (sdk.Ollama)
611+
- Ollama Cloud (sdk.OllamaCloud)
611612
- Groq (sdk.Groq)
612613
- OpenAI (sdk.Openai)
613614
- DeepSeek (sdk.Deepseek)

examples/generation/go.mod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
module github.com/inference-gateway/sdk/examples/generation
22

3-
go 1.24
3+
go 1.25.2
44

55
require github.com/inference-gateway/sdk v0.1.0
66

77
require (
8+
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
89
github.com/davecgh/go-spew v1.1.1 // indirect
910
github.com/go-resty/resty/v2 v2.16.5 // indirect
11+
github.com/google/uuid v1.5.0 // indirect
12+
github.com/oapi-codegen/runtime v1.1.2 // indirect
1013
github.com/pmezard/go-difflib v1.0.0 // indirect
1114
github.com/stretchr/testify v1.10.0 // indirect
1215
golang.org/x/net v0.41.0 // indirect

examples/generation/go.sum

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1+
github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk=
2+
github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ=
3+
github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk=
4+
github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w=
5+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
16
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
27
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
38
github.com/go-resty/resty/v2 v2.16.5 h1:hBKqmWrr7uRc3euHVqmh1HTHcKn99Smr7o5spptdhTM=
49
github.com/go-resty/resty/v2 v2.16.5/go.mod h1:hkJtXbA2iKHzJheXYvQ8snQES5ZLGKMwQ07xAwp/fiA=
10+
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=
11+
github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
12+
github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE=
13+
github.com/oapi-codegen/runtime v1.1.2 h1:P2+CubHq8fO4Q6fV1tqDBZHCwpVpvPg7oKiYzQgXIyI=
14+
github.com/oapi-codegen/runtime v1.1.2/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg=
515
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
616
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
17+
github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0=
18+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
19+
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
720
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
821
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
922
golang.org/x/net v0.41.0 h1:vBTly1HeNPEn3wtREYfy4GZ/NECgw2Cnl+nK6Nz3uvw=

examples/mcp-list-tools/go.mod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
module github.com/inference-gateway/sdk/examples/mcp-list-tools
22

3-
go 1.24
3+
go 1.25.2
44

55
require github.com/inference-gateway/sdk v0.1.0
66

77
require (
8+
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
89
github.com/davecgh/go-spew v1.1.1 // indirect
910
github.com/go-resty/resty/v2 v2.16.5 // indirect
11+
github.com/google/uuid v1.5.0 // indirect
12+
github.com/oapi-codegen/runtime v1.1.2 // indirect
1013
github.com/pmezard/go-difflib v1.0.0 // indirect
1114
github.com/stretchr/testify v1.10.0 // indirect
1215
golang.org/x/net v0.41.0 // indirect

0 commit comments

Comments
 (0)