agent icon indicating copy to clipboard operation
agent copied to clipboard

support openai from langchain

Open dinavinter opened this issue 1 year ago • 2 comments

dinavinter avatar Jan 31 '24 19:01 dinavinter

Thanks so much for this! Do you think it would make sense to have separate Langchain-specific examples?

davidkpiano avatar Feb 02 '24 16:02 davidkpiano

Hi, sorry for the delay in responding. I've been swamped with work but am getting back to it now. I agree with your suggestion and have started implementing the changes you recommended. But, I'm struggling to integrate the lang chain interface with the OpenAI interface because I want to use the prompt template to define the actors' types. Could you please take a look? Maybe you'll have an idea... (you can find the the prompt template here)

dinavinter avatar Mar 20 '24 11:03 dinavinter

Since this PR, I've switched to using the Vercel AI SDK which allows for using an adapter for LangChain: https://sdk.vercel.ai/docs/reference/stream-helpers/langchain-adapter

davidkpiano avatar Jul 16 '24 08:07 davidkpiano