LangChain LLM
%pip install llama-index-llms-langchainfrom langchain.llms import OpenAIfrom llama_index.llms.langchain import LangChainLLMllm = 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?