You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just replaced modelName from "gpt-4" to "gpt-turbo-3.5-16k" in "./lib/chain.ts" then it worked like a champ in my case. Hope that help!
================== ./lib/chain.ts =============
const docChain = loadQAChain(
new OpenAIChat({
temperature: 0,
modelName: "gpt-3.5-turbo-16k", //change this to older versions (e.g. gpt-3.5-turbo) if you don't have access to gpt-4
streaming: Boolean(onTokenStream),
callbackManager: onTokenStream
? CallbackManager.fromHandlers({
async handleLLMNewToken(token) {
onTokenStream(token)
},
})
: undefined,
}),
{ prompt: IMPROVED_QA_PROMPT }
)
When I try to run this project, I got this error.
It is caught in query.ts file.
this function occurs this error.
What is the solution?
Thanks.
The text was updated successfully, but these errors were encountered: