mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
**fix(executor): update antigravity executor to enhance model metadata handling**
- Added additional metadata fields (`Name`, `Description`, `DisplayName`, `Version`) to `ModelInfo` struct initialization for better model representation. - Removed unnecessary whitespace in the code.
This commit is contained in:
@@ -366,11 +366,15 @@ func FetchAntigravityModels(ctx context.Context, auth *cliproxyauth.Auth, cfg *c
|
|||||||
id = modelName2Alias(id)
|
id = modelName2Alias(id)
|
||||||
if id != "" {
|
if id != "" {
|
||||||
models = append(models, ®istry.ModelInfo{
|
models = append(models, ®istry.ModelInfo{
|
||||||
ID: id,
|
ID: id,
|
||||||
Object: "model",
|
Name: id,
|
||||||
Created: now,
|
Description: id,
|
||||||
OwnedBy: antigravityAuthType,
|
DisplayName: id,
|
||||||
Type: antigravityAuthType,
|
Version: id,
|
||||||
|
Object: "model",
|
||||||
|
Created: now,
|
||||||
|
OwnedBy: antigravityAuthType,
|
||||||
|
Type: antigravityAuthType,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user