style(mcp): replace em dashes in alias tool comments

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2026-06-20 10:06:16 +00:00
parent eba08c195a
commit 94c71f2031
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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
}