Probe and handle forced tool_choice for Bedrock Claude models
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
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de 0xPolygon/codegenie
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Todos los issues de 0xPolygon/codegenie
Issues similares
-
JSON parser fails on commentsAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
AloisSeckar/elrh-cosca#36 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
cursor/community-plugins#572 ·
Los mantenedores suelen responder en 1 día
-
[Plugin] calendarAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
MUKE-coder/grit#228 ·
-
[BUG] Keyring unreachableAbiertobug status:needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
dongdongbh/Mindwtr#1587 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
nuxt/icon#585 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día