SShortSingh.
Back to feed

Docker Model Runner Enables Contract Testing Across Three AI API Formats Locally

0
·69 views

Docker Model Runner exposes OpenAI-, Anthropic-, and Ollama-compatible API formats through a single local model environment, making it a practical target for testing protocol adapters without relying on remote providers. Developers can define a shared adapter interface that normalizes responses across all three formats, isolating domain code from provider-specific wire details. Contract tests can then verify properties the application actually depends on, such as non-empty responses, finish reasons, error shapes, and streaming behavior, rather than assuming API compatibility from a shared base URL alone. The approach also recommends explicitly declaring adapter capabilities, such as tool support or token usage availability, so applications can fail fast when a feature is unsupported rather than encountering silent failures mid-execution. Differences in request translation and sampling mean generated text may still vary across adapters even when all three target the same underlying model.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Adaptive Neuro-Symbolic Planning Aims to Support Heritage Language Revitalization

A researcher working on embodied AI agents found that existing heritage language revitalization programs lack adaptive, personalized learning pathways responsive to learners' cultural context. The work explores combining neural pattern recognition with symbolic reasoning, augmented by embodiment feedback, to handle complex morphology and cultural pragmatics. The article cites UNESCO's estimate that a language disappears roughly every two weeks, underscoring the urgency. It presents a hybrid model architecture in code, pairing a transformer-based neural component with a rule-based symbolic component. The piece is framed as an exploration of the approach rather than a report on deployed programs.

0
ProgrammingDEV Community ·

Claude Code now falls back to AGENTS.md when a project has no CLAUDE.md

Claude Code version 2.1.277, released September 18, 2026, adds support for reading AGENTS.md in projects that lack a CLAUDE.md file. The behavior is a fallback rather than a merge, so repositories that already have a CLAUDE.md see no change. The option can be toggled under Project instructions in /config, and it is not yet available on Amazon Bedrock, Google Vertex AI, or Microsoft Foundry. The official memory documentation had not been updated at the time of writing and still states that only CLAUDE.md is read, so users are advised to rely on the release notes and verify behavior in their own sessions.

0
ProgrammingDEV Community ·

Commutr rewards walking, cycling and transit over driving in Kitchener-Waterloo

Commutr is a web app that gives users points for replacing car trips with walking, cycling, scooter or transit in Kitchener-Waterloo. The backend verifies each trip from GPS data, scoring distance against mode-based rates and reducing confidence when a trip looks fabricated, with a daily cap and an Eco Score gate on rewards. The app shows live Grand River Transit bus and ION data, falling back to simulated buses when the feed is unavailable. Its Gemini-powered assistant, Muta, plans trips, answers account questions and can operate the app by text or voice. The project was built at CommuniHacks, and its merchants, rewards and route-safety ratings are demo data, with no login implemented yet.

0
ProgrammingDEV Community ·

Sellers report sudden platform suspensions and frozen funds, sparking debate over appeals

Multiple sellers on paid community and course marketplaces have described accounts vanishing without warning, with appeals denied even when they supplied invoices and screenshots. Funds for work already delivered can remain locked, leaving sellers unable to finish jobs or bill clients again. Some affiliates also say their commissions stayed frozen, including money owed to creators. The platform and its defenders counter that suspensions target fraud, stolen cards and repeat offenders, and that over-blocking is a deliberate risk-management choice. Observers argue the real problem is the lack of a review process that can reverse decisions without a public dispute.