Commit a087f089 authored by Gemini Wen's avatar Gemini Wen
Browse files

fix(account): preserve existing credentials when saving apikey accounts



When editing an apikey account, the credentials object was built from
scratch, causing fields like tier_id that are not exposed in the UI to
be silently dropped on save. Spread currentCredentials first so unknown
fields are retained, then let the known fields overwrite them.
Co-Authored-By: default avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent afbe8bf0
......@@ -2254,6 +2254,7 @@ const handleSubmit = async () => {
// Always update credentials for apikey type to handle model mapping changes
const newCredentials: Record<string, unknown> = {
...currentCredentials,
base_url: newBaseUrl
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment