mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
feat(aiproxy): allow listing virtual key token field (#25676)
Expose VirtualKey in list responses so clients can retrieve the token without a separate get.
This commit is contained in:
@@ -45,7 +45,7 @@ type SAiVirtualKey struct {
|
||||
// OwnerId is the user that owns this virtual key within the project.
|
||||
OwnerId string `width:"128" charset:"ascii" index:"true" list:"user" nullable:"false" create:"optional" update:"user"`
|
||||
// VirtualKey stores the client token encrypted at rest with the row id.
|
||||
VirtualKey string `width:"512" charset:"ascii" nullable:"false" create:"optional" update:"user" get:"user"`
|
||||
VirtualKey string `width:"512" charset:"ascii" nullable:"false" list:"user" create:"optional" update:"user" get:"user"`
|
||||
// VirtualKeyHash is SHA256 of the plaintext token for auth lookup.
|
||||
VirtualKeyHash string `width:"64" charset:"ascii" nullable:"true" unique:"true"`
|
||||
// Limits constrains allowed providers, per-request max_tokens, and request rate.
|
||||
|
||||
Reference in New Issue
Block a user