feat: add NEAR AI Cloud provider#286
Conversation
andreynering
left a comment
There was a problem hiding this comment.
Hi @PierreLeGuen 👋
Two things here:
- This needs a rebase
- Can you confirm you tested this on Crush?
You can test by running Catwalk with task run and Crush with task run:catwalk. This will load from this list. You should see it in Crush and can test models.
1eae25e to
56775c6
Compare
|
Rebased onto latest On testing: I validated locally with I wasn't able to drive a full interactive Crush session headless here, but the catalog loads and the models resolve. Happy to provide any additional output you'd like to see. |
Summary
NEARAI_API_KEYandhttps://cloud-api.near.ai/v1.cmd/nearaigenerator that reads the public model catalog, filters to chat-capable models, converts pricing to Catwalk's per-1M-token fields, and selects defaults from verifiable models when available.Testing
go run ./cmd/nearai/main.gogo test ./cmd/nearai ./pkg/catwalk ./pkg/embeddedgo test ./internal/providers -run '^TestValidDefaultModels$/^NEAR AI Cloud$'Note:
go test ./...currently fails on the existing Chutes config becausedefault_small_model_idiszai-org/GLM-5-Turbo, which is not present in that provider's model list.