MetaGPT
MetaGPT copied to clipboard
Enhanced customization of API parameters for better control over the behavior of the Ollama model.
Features
- Enhanced customization of API parameters for better control over the behavior of the Ollama model.
- Added
repeat_penalty
parameter to the_llama_api_kwargs
to reduce the likelihood of repetitive responses.
Feature Docs
- Detailed parameter usage and values can be found in the Ollama documentation: Ollama Model Documentation
Influence
- This change allows developers to fine-tune the model output based on specific needs by adjusting
temperature
andrepeat_penalty
dynamically throughconfig
. - It should not affect existing implementations as long as the
config
object is properly updated to includerepetition_penalty
.
Result
- Unit tests were updated to cover new configuration options.
- All tests pass with the new changes, ensuring that existing functionalities remain unaffected.
Other
- Ensure that the
config
object in your application is updated to includerepetition_penalty
to avoid runtime errors. - The implementation follows the recommended practices as per the latest Ollama API guidelines.