Howdy CopilotKit team! I updated my langgraph backend to use OpenAI's new responses API (https://community.openai.com/t/introducing-the-responses-api/1140929) and I noticed some interesting behavior in the CopilotChat. While responses are streaming back, I see 5 message boxes on the front end, 2 of which show the streaming response and the other 3 empty. When the streaming finishes we are back to the correct single chat response in one message box. I suspect because the API is so new its not really supported yet. Could you confirm that is the case? Or is it possible I just need to specify a different serviceAdapter to copilotRuntimeNextJSAppRouterEndpoint()? I'm currently using:
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const serviceAdapter = new OpenAIAdapter({ openai });
I can work around this by NOT using the new responses API but it has useful features I'd like to use. Thank you for your time! 🙂
We’re making improvements to how you build assistants and use tools with the OpenAI API. Based on your feedback from the Assistants API beta, we’ve built the Responses API — a faster, more flexible, and easier way to create agentic experiences that combines the simplicity of Chat Completions with the tool use and state management of the As...