Probe and handle forced tool_choice for Bedrock Claude models

Abierto
#47 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
ai, backend

Línea de trabajo

Start by reading src/llm/pi-runner.ts around lines 1969–1970 and the #46 issue to understand the existing tool choice rule. First run a free probe against Bedrock Converse for the listed Claude models to check whether forced toolChoice is rejected. If confirmed, extend the rule to bedrock-converse-stream and verify the config flag is honored.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Context

Reported during the #44 review as a follow-up outside the #46 fix scope, per the operator decision.

Evidence

At src/llm/pi-runner.ts:1969-1970, mapProviderToolChoice returns {type:"tool"} for bedrock-converse-stream regardless of llm.forceSubmitToolChoice. The documented escape hatch therefore does not apply to Bedrock. The plan-86 thinking-off branch covers only anthropic-messages. Pi 1.5.2 amazon-bedrock.json lists Opus 5.5, Fable 5.2 and Sonnet 5.5 with thinkingLevelMap.off null.

Expected / actual

Expected: force submit only where the serving API accepts it, and honor the config flag. Actual: forced submit is always on for Bedrock Converse.

Unknown and severity

It is unverified whether Bedrock Converse rejects forced toolChoice for these models. Direct Anthropic rejects it with HTTP 400 (see #46). Severity is high for Bedrock users if its API rejects the choice; otherwise none.

Next step

Run a free probe on Bedrock. If confirmed, extend the #46 rule to bedrock-converse-stream.

Lenguaje dominante
TypeScript
Estrellas
8
Forks
1
Merge medio
5 min
PR fusionados (30 d)
2

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de 0xPolygon/codegenie

Todos los issues de 0xPolygon/codegenie

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.