Skip to content

Commit d19eb17

Browse files
feat: Devin 分组放开 Messages 调度开关可见性与默认放行
- 分组编辑/创建的 allow_messages_dispatch 区块对 devin 平台显示 - 用户私有 devin 分组默认允许 /v1/messages 分发(与桥接能力一致) Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent c801595 commit d19eb17

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

backend/internal/service/user_private_group_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func normalizePrivateGroupPlatform(platform string) string {
242242

243243
func defaultPrivateGroupAllowMessagesDispatch(platform string) bool {
244244
switch normalizePrivateGroupPlatform(platform) {
245-
case PlatformOpenAI, PlatformOpencode, PlatformKimi, PlatformZhipu, PlatformDeepseek, PlatformMiniMax, PlatformQwen, PlatformAPIAggregation:
245+
case PlatformOpenAI, PlatformOpencode, PlatformDevin, PlatformKimi, PlatformZhipu, PlatformDeepseek, PlatformMiniMax, PlatformQwen, PlatformAPIAggregation:
246246
return true
247247
default:
248248
return false

frontend/src/views/admin/GroupsView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,9 +1287,9 @@
12871287
</div>
12881288
</div>
12891289

1290-
<!-- OpenAI Messages 调度配置(仅 openai 平台) -->
1290+
<!-- OpenAI Messages 调度配置(仅 openai/devin 平台) -->
12911291
<div
1292-
v-if="createForm.platform === 'openai'"
1292+
v-if="createForm.platform === 'openai' || createForm.platform === 'devin'"
12931293
class="border-t border-gray-200 dark:border-dark-400 pt-4 mt-4"
12941294
>
12951295
<h4 class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-3">
@@ -2607,9 +2607,9 @@
26072607
</div>
26082608
</div>
26092609

2610-
<!-- OpenAI Messages 调度配置(仅 openai 平台) -->
2610+
<!-- OpenAI Messages 调度配置(仅 openai/devin 平台) -->
26112611
<div
2612-
v-if="editForm.platform === 'openai'"
2612+
v-if="editForm.platform === 'openai' || editForm.platform === 'devin'"
26132613
class="border-t border-gray-200 dark:border-dark-400 pt-4 mt-4"
26142614
>
26152615
<h4 class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-3">

0 commit comments

Comments
 (0)