Skip to content

(3/6) Cache inference across model providers - #96

Open
ErlisLushtaku wants to merge 2 commits into
cache-stack/02-do-inferencefrom
cache-stack/02b-hosted-providers
Open

(3/6) Cache inference across model providers#96
ErlisLushtaku wants to merge 2 commits into
cache-stack/02-do-inferencefrom
cache-stack/02b-hosted-providers

Conversation

@ErlisLushtaku

Copy link
Copy Markdown
Collaborator

Description

Extends cache descriptors and input hashing across the providers exposed by make_model.

  • Records whether the backend receives chat messages, flattened text or VLLM auto input.
  • Includes hosted endpoints, OpenRouter routing and output-affecting model settings.
  • Removes credentials and VLLM execution-only settings from persisted descriptors.
  • Warns when OpenRouter routing is unpinned and keeps unsupported providers uncached.

This is stacked on #95.

Tests: uv run pytest; uv run ruff check .; uv run ruff format --check ..

Resolve provider request identity before backend construction so hosted, local, chat, and completion models share the same lazy cache boundary without conflating routing, endpoints, or payload formats.

Includes-AI-Code: true
Warn when OpenRouter routing is unpinned and keep cache input mode sourced from the validated descriptor.

Includes-AI-Code: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant