docs: clarify Droid CLI compatibility comment in Responses API translator

Co-authored-by: Emanuel Covelli <emanuel.covelli@netserv.it>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-02-06 09:56:57 +07:00
parent 127475df84
commit 39c555ca7e
2 changed files with 4 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ export function convertResponsesApiFormat(body) {
let pendingToolResults = [];
for (const item of body.input) {
// Determine item type - Droid may send items without 'type' field
// If no type but has role, treat as message
// Determine item type - Droid CLI sends role-based items without 'type' field
// Fallback: if no type but has role property, treat as message
const itemType = item.type || (item.role ? "message" : null);
if (itemType === "message") {

View File

@@ -26,8 +26,8 @@ export function openaiResponsesToOpenAIRequest(model, body, stream, credentials)
let pendingToolResults = [];
for (const item of body.input) {
// Determine item type - Droid may send items without 'type' field
// If no type but has role, treat as message
// Determine item type - Droid CLI sends role-based items without 'type' field
// Fallback: if no type but has role property, treat as message
const itemType = item.type || (item.role ? "message" : null);
if (itemType === "message") {