ChatOpenAI (Responses API): create_text_block()’s lc_ id on a synthetic AIMessage causes 400 “Expected an ID that begins with ‘msg'”

该报错发生在 LangChain 使用 ChatOpenAI 的 Responses API( use_responses_api=True )时,如果消息中包含通过 create_text_block() 等工厂方法生成的合成内容块(其 ID 以 lc_ 开头),会被原样转发给 OpenAI 接口








