mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 14:03:26 +00:00
Add support for ChatOpenAI models in Infino callback handler (#11608)
**Description:** This PR adds support for ChatOpenAI models in the Infino callback handler. In particular, this PR implements `on_chat_model_start` callback, so that ChatOpenAI models are supported. With this change, Infino callback handler can be used to track latency, errors, and prompt tokens for ChatOpenAI models too (in addition to the support for OpenAI and other non-chat models it has today). The existing example notebook is updated to show how to use this integration as well. cc/ @naman-modi @savannahar68 **Issue:** https://github.com/langchain-ai/langchain/issues/11607 **Dependencies:** None **Tag maintainer:** @hwchase17 **Twitter handle:** [@vkakade](https://twitter.com/vkakade)
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user