Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docs/api_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,7 @@ With `base_url = "https://completions.near.ai"` (the default), or
`/endpoints`. Set `[providers.neardirect].base_url` to an explicit HTTPS backend
origin to disable endpoint discovery in both commands. That origin is used for
attestation and inference for every requested model; all attestation, TLS, and
E2EE checks still apply. The `/v1/models` catalog remains gateway-provided:
it lists the models that `cloud-api.near.ai/v1/models` returns with `owned_by` `"nearai"`.
It also lists `z-ai/glm-5.3-flash-long`, which that catalog does not list,
while `/endpoints` serves it; with an explicit backend origin it does not.
E2EE checks still apply. The `/v1/models` catalog remains gateway-provided.
`teep verify` does not send its chat probe to the five NEAR models that serve
another endpoint; see [models the probe does not cover](providers/near/near_attestation.md#models-the-probe-does-not-cover).

Expand Down
95 changes: 0 additions & 95 deletions internal/provider/neardirect/models.go

This file was deleted.

91 changes: 0 additions & 91 deletions internal/provider/neardirect/models_test.go

This file was deleted.

4 changes: 2 additions & 2 deletions internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,10 @@ func fromConfig(
p.Preparer = neardirect.NewPreparer(cp.APIKey)
p.ReportDataVerifier = rdVerifier
p.SupplyChainPolicy = neardirect.SupplyChainPolicy()
p.ModelLister = neardirect.NewModelLister(provider.NewOwnedByModelLister(
p.ModelLister = provider.NewOwnedByModelLister(
"https://"+nearcloud.GatewayHost(), cp.APIKey,
config.NewAttestationClient(offline), "nearai",
), attester)
)
case "nearcloud":
p.ChatPath = "/v1/chat/completions"
p.ImagesPath = "/v1/images/generations"
Expand Down
Loading