Skip to content

Commit 96af1aa

Browse files
committed
refactor: LLM providers logic to dispatcher module
1 parent bf38d16 commit 96af1aa

File tree

3 files changed

+502
-469
lines changed

3 files changed

+502
-469
lines changed

lua/gp/config.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,6 @@ local config = {
517517
local copy = vim.deepcopy(plugin)
518518
local key = copy.config.openai_api_key or ""
519519
copy.config.openai_api_key = key:sub(1, 3) .. string.rep("*", #key - 6) .. key:sub(-3)
520-
for provider, _ in pairs(copy.providers) do
521-
local s = copy.providers[provider].secret
522-
if s and type(s) == "string" then
523-
copy.providers[provider].secret = s:sub(1, 3) .. string.rep("*", #s - 6) .. s:sub(-3)
524-
end
525-
end
526520
local plugin_info = string.format("Plugin structure:\n%s", vim.inspect(copy))
527521
local params_info = string.format("Command params:\n%s", vim.inspect(params))
528522
local lines = vim.split(plugin_info .. "\n" .. params_info, "\n")

0 commit comments

Comments
 (0)