﻿# LiteLLM registers Ollama prices without probing the default local server

Observe configured and default endpoints separately during registration; catalog pricing should not require a live Ollama capability probe.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-ollama-registration-no-provider-probe/
Language: en

LiteLLM v1.111.0-dev.2, released as a prerelease on November 13, removes a live Ollama model-info call from deployment price registration. Registration now reads the built-in catalog. The reported defect contacted the default local server instead of the deployment’s configured endpoint, making configuration itself produce an unexpected request before ordinary inference began.

## Two owned peers expose a wrong destination

Run two harmless local fixtures: one at the intended deployment endpoint and another representing the default Ollama address. Register a fresh synthetic model while recording every request on both peers. The expected registration path makes no provider call for pricing. A test with only the intended peer can miss traffic elsewhere, and a shared test server can accidentally return valid-looking data that conceals the destination error.

## Registration and model discovery have different purposes

After registration, explicitly invoke the supported runtime model-info operation against an owned server and observe its request. The PR leaves public model-info lookup and inference unchanged. Removing a surprise pricing probe should not be described as removing legitimate capability discovery. Keep the two operations distinct in startup code so an operator can choose whether readiness requires a reachable model server or merely a locally valid deployment configuration.

## Catalog selection needs a fixed expectation

Use a frozen catalog and a deliberately distinct custom price control to inspect the registration result. Verify the resolved model identity before calculating synthetic usage. No network request does not prove the right row was selected, just as a plausible price does not prove network silence. Record both assertions separately and retain the catalog revision so future bundled-data updates do not look like a recurrence of the endpoint-selection defect.

## Repeat initialization without shared-state assumptions

Repeat in a fresh process and with the application’s actual environment overrides. The original failure appeared when another fixture owned the default port, so isolation assumptions are part of the mechanism. This prerelease corrects registration side effects rather than announcing a provider performance improvement. A useful adoption record combines zero unexpected probes, the intended price identity and a separately verified inference request sent only when the application explicitly asks for execution.

## Sources

- [LiteLLM v1.111.0-dev.2 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.2)
- [LiteLLM implementation and review #51561](https://github.com/BerriAI/litellm/pull/51561)

## Related reading

- [LiteLLM Proxy: when to operate your own model gateway](/journal/litellm-proxy-guide/)
- [Retrying generation POSTs: idempotency must be explicit](/journal/provider-post-retry-idempotency-ledger/)
