Replies: 3 comments
-
|
I would treat this as two separate problems: schema correctness and transcript correctness. For the Responses API path, the first thing I would check is the exact tool schema that LlamaIndex sends after adapter conversion. Strict tool schemas need closed objects, so every object level should have The second thing is the tool-call history shape. Responses-style tool calls are very sensitive to preserving the call id and the order of tool call -> tool result -> next model input. If an adapter transforms old chat history into a shape that loses the response/tool ids, follow-up calls can break even if the first call works. My debugging path would be:
If step 2 fails, it is probably a schema conversion bug. If step 2 works but multi-turn tools fail, it is probably the history/tool-result transform. In production I would stay on the Chat Completions adapter or the plain OpenAI LLM wrapper until the Responses adapter is solid for tool-heavy flows. |
Beta Was this translation helpful? Give feedback.
-
|
We've encountered similar issues with
from pydantic import BaseModel
class CustomResponse(BaseModel):
class Config:
extra = "forbid"This approach helped us resolve similar issues and improve the overall reliability of our LLM-based system. |
Beta Was this translation helpful? Give feedback.
-
|
ok thanks to both for the feedback. primarily I wasnt sure if im just totally off with my assessment. I'm also gonna roll my own little adapter then. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to work with llamaindex's
OpenAIResponses(aFunctionCallingLLMagainst the responses API). It didn't work out of the box with missing/wrong fields in the jsons that are sent out. Then I went and looked at the code and it doesn't give a lot of confidence that it's solid. Is anynone using it with success?There seem to be many things wrong when it comes to the response api's
strictsettings, with missingadditionalProperties = Falseall over, and then the transformation from llama index's internal history to the response api's history is wrong too especially when it comes to tool calls and tool results.Is anybody seeing this? I don't understand how anyone could use it except for very simple cases, text only, no tools or anything.
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions