Andy Krings-Stern
Andy Krings-Stern
Can you please expand on that? Do you want to get the selected node(s)? ```ts const { selected } = useEditor(state => ({ selected: state.events.selected })); ``` Do you want...
Closing due to no time available
Closing due to no time available
Closing due to no time available
Hey. Thanks for the repo and the work you put in! I have the same error. ```ts const docChain = loadQAChain( new OpenAIChat({ temperature: 0, modelName: 'text-davinci-003', //
I tried some googling and changed the model to: ``` modelName: 'gpt-3.5-turbo' ``` and now it seems to work. @sdugoten - can you try to change the [modelName](https://github.com/mayooear/gpt4-pdf-chatbot-langchain/blob/main/utils/makechain.ts#L39 ) and...
For future readers: Yes. You are running into problems with `text-davinci-003` because the OpenAI wrapper is hitting the `https://api.openai.com/v1/chat/completions` endpoint. These are the supported models for this endpoint: `gpt-4, gpt-4-0314,...
You can add a callback to `connectors.create`: ```ts connectors.create(ref, node, { onCreate: (nodeTree) => { // nodeTree has been created }}); ```