yGuy / chatgpt-mattermost-bot

A very simple implementation of a service for a mattermost bot that uses ChatGPT in the backend.
MIT License
150 stars 48 forks source link

Feature Request: Allow setting the TEMPERATURE via process.env #34

Closed your-highness closed 1 year ago

your-highness commented 1 year ago

Herein used package openai allows to set the temperature of the model (see https://platform.openai.com/docs/api-reference/chat/create ). The user should be allowed to set this value to a float in [0,2].

Working on this right now. Pull request will follow.

your-highness commented 1 year ago

🚀

yGuy commented 1 year ago

Thanks.

Is '1' the default that was being used implicitly when you did not specify the code? In other words: will this change the behavior for those who have not specified the value?

your-highness commented 1 year ago

Thanks.

Is '1' the default that was being used implicitly when you did not specify the code? In other words: will this change the behavior for those who have not specified the value?

As stated in https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature the default is 1: image

your-highness commented 1 year ago

Dear @yGuy ,

Any idea when this feature will be released via docker ghcr?

P.S.: Sorry for commenting on closed issue

your-highness commented 1 year ago

I see it's already publish via master tag on https://ghcr.io/yguy/chatgpt-mattermost-bot :smile: