Skip to content
LlamaIndex 文档版本 跟随上游 源快照 1f7acf5a 更新于 2026-10-18
%pip install llama-index-llms-langchain
from langchain.llms import OpenAI
from llama_index.llms.langchain import LangChainLLM
llm = LangChainLLM(llm=OpenAI())
response_gen = llm.stream_complete("Hi this is")
for delta in response_gen:
    print(delta.delta, end="")
 a test

Hello! Welcome to the test. What would you like to learn about?

BytesRouter 是社区翻译站点,所有译文仅供参考,一切以官方英文原文为准。