feature model selection custom display name (#1477)
* feature model selection custom display name Added an option for a custom display name I had the need for this option for multiple similar custom model configurations where I wanted to have more indicative titles. * linting error
This commit is contained in:
committed by
GitHub
parent
7919fe010b
commit
232d4b1340
@@ -8,11 +8,12 @@ local M = {}
|
||||
---@param cfg table
|
||||
---@return table?
|
||||
local function create_model_entry(provider, cfg)
|
||||
return cfg.model and {
|
||||
name = provider .. "/" .. cfg.model,
|
||||
provider = provider,
|
||||
model = cfg.model,
|
||||
}
|
||||
return cfg.model
|
||||
and {
|
||||
name = cfg.display_name or (provider .. "/" .. cfg.model),
|
||||
provider = provider,
|
||||
model = cfg.model,
|
||||
}
|
||||
end
|
||||
|
||||
function M.open()
|
||||
|
||||
Reference in New Issue
Block a user