mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-19 04:40: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:
@@ -367,6 +367,10 @@ func FetchAntigravityModels(ctx context.Context, auth *cliproxyauth.Auth, cfg *c
|
|||||||
if id != "" {
|
if id != "" {
|
||||||
models = append(models, ®istry.ModelInfo{
|
models = append(models, ®istry.ModelInfo{
|
||||||
ID: id,
|
ID: id,
|
||||||
|
Name: id,
|
||||||
|
Description: id,
|
||||||
|
DisplayName: id,
|
||||||
|
Version: id,
|
||||||
Object: "model",
|
Object: "model",
|
||||||
Created: now,
|
Created: now,
|
||||||
OwnedBy: antigravityAuthType,
|
OwnedBy: antigravityAuthType,
|
||||||
|
|||||||
Reference in New Issue
Block a user