Remove pi-ai Responses and Anthropic Messages compat overrides when upstream fixes effort encoding

Open
#432 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
12/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend

Research direction

The overrides concern the pi-ai dependency's OpenAI Responses and Anthropic Messages routes; the issue names no files in this repository. Start by locating where the direct Anthropic Messages override and the Responses override are declared, and check the referenced Pi #12464 comment. Done means both route-specific checklists are run at a pi-ai bump and evidence is recorded before either override is changed.

Written by the indexing model from the issue text.

Description

enhancement stage7-harness

Status

Backlog maintenance tracker. Owner: whoever performs each pi-ai version bump. Keep this deliberately open and check both routes independently at every bump.

Scope

Track removal/requalification of the direct OpenAI Responses compatibility override and the direct Anthropic Messages override. The latter was shipped in 0.9.6 after #443/#446; it is only for provider anthropic with API anthropic-messages. Neither override applies to OpenRouter, Bedrock, or Vertex. The upstream observation is recorded at Pi #12464.

Removal criteria

  • Responses: verify native initial/continuation request effort and tool encoding; retain the existing matched reasoning controls before removing or narrowing the override.
  • Anthropic Messages: verify native initial and continuation effort for Claude Opus/Sonnet 5.5, and a matched Opus high/low control on the affected fixture. Do not infer effective effort from token similarity alone; report whether the provider echoes effort.
  • Remove each route independently only when upstream behavior is verified. If partly fixed, narrow only the corresponding override.

Next step

At the next pi-ai bump, owner runs both route-specific requalification checklists and records evidence before changing either override.

Dominant language
TypeScript
Stars
8
Forks
1
Avg merge
1h 24m
Merged PRs (30d)
192

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 0xPolygon/codegenie

All issues in 0xPolygon/codegenie

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.