mirror of
https://github.com/mudler/LocalAI.git
synced 2026-06-20 14:49:09 -04:00
style(mcp): replace em dashes in alias tool comments
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
@@ -366,7 +366,7 @@ func (c *Client) SetAlias(ctx context.Context, name, target string) error {
|
||||
}
|
||||
|
||||
func (c *Client) ListAliases(ctx context.Context) ([]localaitools.AliasInfo, error) {
|
||||
// /api/aliases returns []{name,target} directly — pass it through.
|
||||
// /api/aliases returns []{name,target} directly - pass it through.
|
||||
var out []localaitools.AliasInfo
|
||||
if err := c.do(ctx, http.MethodGet, routeAliases, nil, &out); err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -358,7 +358,7 @@ func (c *Client) createAlias(name, target string) error {
|
||||
if err := c.ConfigLoader.LoadModelConfigsFromPath(modelsPath, c.AppConfig.ToConfigLoaderOptions()...); err != nil {
|
||||
return fmt.Errorf("reload configs: %w", err)
|
||||
}
|
||||
// Preload is best-effort — a failure here doesn't undo the create.
|
||||
// Preload is best-effort - a failure here doesn't undo the create.
|
||||
_ = c.ConfigLoader.Preload(modelsPath)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user