🔧 **fix(model, controller): robust serialization for `ChannelInfo` & correct Vertex-AI key storage** Summary 1. **model/channel.go** • Replaced the pointer-only `Value()` with a value-receiver implementation • GORM can now marshal both `ChannelInfo` and `*ChannelInfo`, eliminating `unsupported type model.ChannelInfo` runtime error. 2. **controller/channel.go** • Refactored `getVertexArrayKeys()` – every element is now - passed through `json.Marshal` when not already a string - trimmed & validated before insertion • Guarantees each service-account key is persisted as a **pure JSON string** instead of the previous `map[...]` dump. Result • Channel creation / update succeeds without SQL driver errors. • Vertex-AI batch & multi-key uploads are stored in canonical JSON, ready for downstream SDKs to consume.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .github | Loading commit data... | |
| bin | Loading commit data... | |
| common | Loading commit data... | |
| constant | Loading commit data... | |
| controller | Loading commit data... | |
| docs | Loading commit data... | |
| dto | Loading commit data... | |
| i18n | Loading commit data... | |
| middleware | Loading commit data... | |
| model | Loading commit data... | |
| relay | Loading commit data... | |
| router | Loading commit data... | |
| service | Loading commit data... | |
| setting | Loading commit data... | |
| types | Loading commit data... | |
| web | Loading commit data... | |
| .dockerignore | Loading commit data... | |
| .env.example | Loading commit data... | |
| .gitignore | Loading commit data... | |
| Dockerfile | Loading commit data... | |
| LICENSE | Loading commit data... | |
| README.en.md | Loading commit data... | |
| README.md | Loading commit data... | |
| VERSION | Loading commit data... | |
| docker-compose.yml | Loading commit data... | |
| go.mod | Loading commit data... | |
| go.sum | Loading commit data... | |
| main.go | Loading commit data... | |
| makefile | Loading commit data... | |
| one-api.service | Loading commit data... |