Skip to content

Commit 14f8901

Browse files
committed
fix: Devin 平台 Base URL 锁定为官方地址不可修改
1 parent b5e9d4b commit 14f8901

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎frontend/src/components/account/CreateAccountModal.vue‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,8 @@
13151315
<input
13161316
v-model="apiKeyBaseUrl"
13171317
type="text"
1318-
class="input"
1318+
class="input disabled:cursor-not-allowed disabled:opacity-60"
1319+
:disabled="form.platform === 'devin'"
13191320
:placeholder="
13201321
form.platform === 'openai'
13211322
? 'https://api.openai.com'

‎frontend/src/components/account/EditAccountModal.vue‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@
158158
<input
159159
v-model="editBaseUrl"
160160
type="text"
161-
class="input"
161+
class="input disabled:cursor-not-allowed disabled:opacity-60"
162+
:disabled="account.platform === 'devin'"
162163
:placeholder="
163164
account.platform === 'openai'
164165
? 'https://api.openai.com'
@@ -3614,7 +3615,9 @@ const syncFormFromAccount = (newAccount: Account | null) => {
36143615
? 'https://api.x.ai/v1'
36153616
: newAccount.platform === 'opencode'
36163617
? ''
3617-
: 'https://api.anthropic.com'
3618+
: newAccount.platform === 'devin'
3619+
? 'https://server.codeium.com'
3620+
: 'https://api.anthropic.com'
36183621
editOpencodeAccountMode.value = credentials.account_mode === 'zen' ? 'zen' : 'go'
36193622
editBaseUrl.value = (credentials.base_url as string) || platformDefaultUrl
36203623
if (isCNPlatform(newAccount.platform)) {

0 commit comments

Comments
 (0)