feat(admin-v2): add LLM routing to accounts, upgrade Key Pool CRUD, extend agent template fields
- Add llm_routing field (relay/local) to AccountPublic type and Accounts page table + edit modal - Upgrade Providers Key Pool from read-only to full CRUD with add/toggle/delete mutations - Extend AgentTemplate type with soul_content, scenarios, welcome_message, quick_commands, personality, communication_style, emoji, version, source_id fields - Add AgentTemplateAvailable lightweight interface - Add emoji column and extended form fields (emoji, personality, soul_content, welcome_message, communication_style, source_id) to Agent Templates page - Add getFull method to agent-templates service - Fix misplaced useState import in Accounts.tsx
This commit is contained in:
@@ -51,6 +51,7 @@ export default function AgentTemplates() {
|
||||
})
|
||||
|
||||
const columns: ProColumns<AgentTemplate>[] = [
|
||||
{ title: '图标', dataIndex: 'emoji', width: 60 },
|
||||
{ title: '名称', dataIndex: 'name', width: 160 },
|
||||
{ title: '分类', dataIndex: 'category', width: 100 },
|
||||
{ title: '模型', dataIndex: 'model', width: 140, render: (_, r) => r.model || '-' },
|
||||
@@ -152,6 +153,29 @@ export default function AgentTemplates() {
|
||||
{ value: 'private', label: '私有' },
|
||||
]} />
|
||||
</Form.Item>
|
||||
<Form.Item name="emoji" label="图标">
|
||||
<Input placeholder="如 🏥" />
|
||||
</Form.Item>
|
||||
<Form.Item name="personality" label="人格预设">
|
||||
<Select options={[
|
||||
{ value: 'professional', label: '专业' },
|
||||
{ value: 'friendly', label: '友好' },
|
||||
{ value: 'creative', label: '创意' },
|
||||
{ value: 'concise', label: '简洁' },
|
||||
]} allowClear placeholder="选择人格预设" />
|
||||
</Form.Item>
|
||||
<Form.Item name="soul_content" label="SOUL.md 人格配置">
|
||||
<TextArea rows={8} />
|
||||
</Form.Item>
|
||||
<Form.Item name="welcome_message" label="欢迎语">
|
||||
<TextArea rows={2} />
|
||||
</Form.Item>
|
||||
<Form.Item name="communication_style" label="沟通风格">
|
||||
<TextArea rows={2} />
|
||||
</Form.Item>
|
||||
<Form.Item name="source_id" label="模板标识">
|
||||
<Input placeholder="如 medical-assistant-v1" />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
</Modal>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user