Skip to content

fix(discovery): read reasoning and cache prices from Otari's model list - #82

Merged
tbille merged 1 commit into
mainfrom
fix/discovery-reasoning-cache-pricing
Nov 18, 2026
Merged

tbille merged 1 commit into
mainfrom
fix/discovery-reasoning-cache-pricing

Conversation

@hasangzl

Copy link
Copy Markdown
Member

Discovery registered every Otari model with reasoning off and cache reads priced at $0, because the mapper read fields GET /v1/models never sends.

  • reasoning: derived from "reasoning" in supported_parameters (an explicit reasoning boolean still wins), so Pi offers thinking levels for reasoning models such as deepseek/deepseek-v4-flash.
  • cost.cacheRead / cost.cacheWrite: read from pricing.cache_read_price_per_million / cache_write_price_per_million, falling back to the input price when unset, which is how Otari bills an unset cache rate (otari docs/models.md, prompt caching).

Also updates the README, CONTRIBUTING and live-smoke comment that said Otari publishes no reasoning flag. No version bump: releases bump in their own PR per CONTRIBUTING.

Reasoning comes from supported_parameters, and cache read and write prices
from pricing, falling back to the input price as Otari bills an unset rate.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 835e004b-1d14-4fb4-a415-6af4dd340227
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@tbille
tbille merged commit 9e67de0 into main Nov 18, 2026
2 checks passed
@tbille
tbille deleted the fix/discovery-reasoning-cache-pricing branch November 18, 2026 15:36
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.

2 participants