= messages,    model="gpt-3.5-turbo",     temperature=0,    stream=True):    print(c["choices"][0]['delta'].to_dict_recursive())    {'role': 'assistant', 'content': ''}    {'content': 'Hello'}    {'content': '!'}    {'content': ' How'}    {'content': ' can'}    {'content': ' I'}    {'content': ' assist'}    {'content': ' you'}    {'content': ' today'}    {'content': '?'}    {}LangChain OpenAI wrapper callfor c in lc_openai.ChatCompletion.create(    messages = messages,    model="gpt-3.5-turbo",     temperature=0,    stream=True):    print(c["choices"][0]['delta'])    {'role': 'assistant', 'content': ''}    {'content': 'Hello'}    {'content': '!'}    {'content': ' How'}    {'content': ' can'}    {'content': ' I'}    {'content': ' assist'}    {'content': ' you'}    {'content': ' today'}    {'content': '?'}    {}Swapping out model providersfor c in lc_openai.ChatCompletion.create(    messages = messages,    model="claude-2",     temperature=0,    stream=True,    provider="ChatAnthropic",):    print(c["choices"][0]['delta'])    {'role': 'assistant', 'content': ' Hello'}    {'content': '!'}    {}PreviousGuidesNextDebuggingChatCompletion.createChatCompletion.streamCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
A lot of people get started with OpenAI but want to explore other models. LangChain's integrations with many model providers make this easy to do so. While LangChain has it's own message and model APIs, we've also made it as easy as possible to explore other models by exposing an adapter to adapt LangChain models to the OpenAI api.
A lot of people get started with OpenAI but want to explore other models. LangChain's integrations with many model providers make this easy to do so. While LangChain has it's own message and model APIs, we've also made it as easy as possible to explore other models by exposing an adapter to adapt LangChain models to the OpenAI api. ->: = messages,    model="gpt-3.5-turbo",     temperature=0,    stream=True):    print(c["choices"][0]['delta'].to_dict_recursive())    {'role': 'assistant', 'content': ''}    {'content': 'Hello'}    {'content': '!'}    {'content': ' How'}    {'content': ' can'}    {'content': ' I'}    {'content': ' assist'}    {'content': ' you'}    {'content': ' today'}    {'content': '?'}    {}LangChain OpenAI wrapper callfor c in lc_openai.ChatCompletion.create(    messages = messages,    model="gpt-3.5-turbo",     temperature=0,    stream=True):    print(c["choices"][0]['delta'])    {'role': 'assistant', 'content': ''}    {'content': 'Hello'}    {'content': '!'}    {'content': ' How'}    {'content': ' can'}    {'content': ' I'}    {'content': ' assist'}    {'content': ' you'}    {'content': ' today'}    {'content': '?'}    {}Swapping out model providersfor c in lc_openai.ChatCompletion.create(    messages = messages,    model="claude-2",     temperature=0,    stream=True,    provider="ChatAnthropic",):    print(c["choices"][0]['delta'])    {'role': 'assistant', 'content': ' Hello'}    {'content': '!'}    {}PreviousGuidesNextDebuggingChatCompletion.createChatCompletion.streamCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.