Add thinking model parameters and document explanations #369
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two parameters have been added to the configuration file,
enable_thinkingandthinking_budget, which need to be implemented in OpenAI'sextra_body. Most Chinese API providers (moonshot, Aliyun Bailian, Baidu QianFan) follow the same set of interfaces.Support different models to freely enable and disable thinking modes and be compatible with existing examples. I have updated the usage instructions in readme to provide detailed instructions on how to configure it.
And the CoT will be record, here are examples:

This node samples a no thinking model
This node samples thinking model and the reasoning is recorded, which is helpful for analysising evolution. We can see that LLM currently considers the program to be good enough and hopes to simplify the code.

Fix #367