My settings:
const completion = await openai.createCompletion({
model: "text-davinci-003",
prompt: text,
// temperature: 0.4,
max_tokens: 2048,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0.6,
});
When the bot success answers my question, I say to him "tell me more" and he gives me an answer completely unrelated to the context of the dialogue
Example:
- user: What is React.js?
- bot: React.js is an open-source JavaScript library for building user interfaces. It allows developers to create interactive UIs by breaking down the user interface into smaller parts called components that can be reused in multiple places. The library also provides built-in features such as server-side rendering, and state management. React is used most often for building complex Single Page Applications (SPAs) and mobile web apps.
- user: Tell me more
- bot: Linear programming is a method of analysis that uses mathematical concepts to solve complex optimization problems. It is used to maximize or minimize some target value or function, depending on the data - constraints or relationships.