From 1b50e3fd39fdaa4873b242c92a812b653db54bef Mon Sep 17 00:00:00 2001 From: barrelofbugs Date: Tue, 20 Feb 2024 13:54:10 -0500 Subject: [PATCH] fix: add check for temperature if empty string --- rplugin/python3/CopilotChat/handlers/chat_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)