Skip to content

Commit

Permalink
fix: add "deepseek-r1" name detection after changing provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuukibarns committed Feb 12, 2025
1 parent b61b107 commit 2b3e095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gp/dispatcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ end
---@param on_exit function | nil # optional on_exit handler
---@param callback function | nil # optional callback handler
local query = function(buf, provider, payload, handler, on_exit, callback)
local is_reasoning = payload.model == "deepseek-reasoner"
local is_reasoning = payload.model == "deepseek-reasoner" or payload.model == "deepseek-r1"
-- make sure handler is a function
if type(handler) ~= "function" then
logger.error(
Expand Down

0 comments on commit 2b3e095

Please sign in to comment.