mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-15 07:00:38 +00:00
fix
This commit is contained in:
@@ -415,7 +415,7 @@ class ChatOpenAI(BaseChatModel):
|
||||
message=chunk, generation_info=generation_info
|
||||
)
|
||||
if run_manager:
|
||||
run_manager.on_llm_new_token(chunk.text, chunk=cg_chunk)
|
||||
run_manager.on_llm_new_token(cg_chunk.text, chunk=cg_chunk)
|
||||
yield cg_chunk
|
||||
|
||||
def _generate(
|
||||
@@ -507,7 +507,7 @@ class ChatOpenAI(BaseChatModel):
|
||||
message=chunk, generation_info=generation_info
|
||||
)
|
||||
if run_manager:
|
||||
await run_manager.on_llm_new_token(token=chunk.text, chunk=cg_chunk)
|
||||
await run_manager.on_llm_new_token(token=cg_chunk.text, chunk=cg_chunk)
|
||||
yield cg_chunk
|
||||
|
||||
async def _agenerate(
|
||||
|
||||
Reference in New Issue
Block a user