Replies: 1 comment
-
🤖 Hi @saifu19! I'm Dosu, a friendly bot here to lend a helping hand while we wait for a human maintainer. I'm here to assist you in troubleshooting bugs, answering your queries, and guiding you on how to contribute better. Let's get your issue sorted, shall we? Based on the code you've shared, it seems like you're correctly setting up the Firstly, it's important to note that the Secondly, there was a similar issue reported in the langchainjs repository where streaming was not working when run behind a proxy server. The issue was resolved in version 0.0.142 of langchainjs. If your application is running behind a proxy, you might want to check if this is causing the issue. Here's the relevant code from the solution: import { ProxyAgent } from 'proxy-agent';
const model = new ChatOpenAI(
{
streaming: true,
},
{
httpAgent: new ProxyAgent(),
},
); You can refer to the issue Streaming does not work if run behind a proxy server for more details. Lastly, if none of the above solutions work, it would be helpful to have more information about the error you're encountering. Are there any error messages being logged to the console? If so, could you share them? This could provide more insight into what might be going wrong. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
So I am trying to make this AdonisJS app with langchain and OpenAI. I have got everything right but the streaming thing is giving me very tough time. I did everything exactly as in the documentation but it doesn't work and I have no idea why. I have this executor provider where I have functions to set memory, prompts, tools, initialize executor and invoke. I am sharing init and invoke methods below. Please help me
Beta Was this translation helpful? Give feedback.
All reactions