Extensions icon indicating copy to clipboard operation
Extensions copied to clipboard

openAI Node default settings are very confusing

Open cabullmann opened this issue 3 years ago • 2 comments

This is based on a partner question related to the openAI Extension.

Based on my testings a few things should be changed:

  1. the default value for prompt should be {{input.text}} , the current value is wrong and utterly confusing, the model already has the information
  2. based on the openAI documentation and my testing the following default settings should be changed to the following values:
  • temperature: 1
  • max_tokens: 100
  • top_p: 0.1

In terms of postprocessing the following code provides good results in extracting the first proper paragraph: input.openai.match(/\w.*[!"#$%&'()*+,\-.\/:;<=>?@[\]^_{|}~]/m)` this should probably be part of the readme

cabullmann avatar Apr 06 '22 15:04 cabullmann

Thank you very much @cabullmann . I will implement and test the suggested changes.

Just for my understanding: Do you want to have {{input.text}} as default value for the text fields of the Flow Node?

alexteusz avatar Apr 07 '22 14:04 alexteusz

@alexteusz yes, exactly

cabullmann avatar Apr 29 '22 13:04 cabullmann