What happened?
The code sends a prompt to the LLM saying: "Review the OpenAPI specification and infer the operation ID.It never actually sends the OpenAPI specification in that message. The LLM receiving this request is "blind." It doesn't have the spec in its context window. It will have to rely on its pre-trained knowledge of Paystack (which might be outdated) or simply hallucinate.
To fix this I propose you need to include a summarized list of endpoints in the prompt or use an embedding search (RAG) to find the relevant operation.
Version
1.0.2 (Default)
Relevant log output
Code of Conduct