diff --git a/rplugin/python3/CopilotChat/handlers/chat_handler.py b/rplugin/python3/CopilotChat/handlers/chat_handler.py index 59233de7..7d752a0e 100644 --- a/rplugin/python3/CopilotChat/handlers/chat_handler.py +++ b/rplugin/python3/CopilotChat/handlers/chat_handler.py @@ -45,7 +45,7 @@ def chat( self.nvim.eval("g:copilot_chat_disable_separators") == "yes" ) temperature = self.nvim.eval("g:copilot_chat_temperature") - if temperature is None: + if temperature is None or temperature == "": temperature = 0.1 else: temperature = float(temperature)