Removed llm config and made ui tweaks
This commit is contained in:
parent
5280433c8f
commit
f74337f60f
3 changed files with 0 additions and 17 deletions
|
|
@ -13,7 +13,6 @@ export interface AgentConfig {
|
||||||
uuid: string
|
uuid: string
|
||||||
name: string
|
name: string
|
||||||
agent_type: AgentType
|
agent_type: AgentType
|
||||||
llm_config: LLMConfig
|
|
||||||
organization: string | UuidNameRef
|
organization: string | UuidNameRef
|
||||||
description?: string
|
description?: string
|
||||||
[key: string]: unknown
|
[key: string]: unknown
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ const agent = ref<AgentConfig>({
|
||||||
status: 'idle',
|
status: 'idle',
|
||||||
uuid: agentUuid,
|
uuid: agentUuid,
|
||||||
agent_type: 'knowledge',
|
agent_type: 'knowledge',
|
||||||
llm_config: {},
|
|
||||||
organization: '',
|
organization: '',
|
||||||
})
|
})
|
||||||
const saveLoading = ref(false)
|
const saveLoading = ref(false)
|
||||||
|
|
@ -39,7 +38,6 @@ const editingConfig = ref(false)
|
||||||
const agentForm = ref({
|
const agentForm = ref({
|
||||||
name: '',
|
name: '',
|
||||||
agent_type: 'knowledge',
|
agent_type: 'knowledge',
|
||||||
model_id: '',
|
|
||||||
system_prompt: '',
|
system_prompt: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -90,7 +88,6 @@ const fetchAgent = async () => {
|
||||||
agentForm.value = {
|
agentForm.value = {
|
||||||
name: response.data.name || '',
|
name: response.data.name || '',
|
||||||
agent_type: response.data.agent_type || 'knowledge',
|
agent_type: response.data.agent_type || 'knowledge',
|
||||||
model_id: String(response.data.llm_config?.model_id || ''),
|
|
||||||
system_prompt: String(response.data.system_prompt || ''),
|
system_prompt: String(response.data.system_prompt || ''),
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
@ -110,7 +107,6 @@ const resetForm = () => {
|
||||||
agentForm.value = {
|
agentForm.value = {
|
||||||
name: agent.value.name || '',
|
name: agent.value.name || '',
|
||||||
agent_type: agent.value.agent_type || 'knowledge',
|
agent_type: agent.value.agent_type || 'knowledge',
|
||||||
model_id: String(agent.value.llm_config?.model_id || ''),
|
|
||||||
system_prompt: String(agent.value.system_prompt || ''),
|
system_prompt: String(agent.value.system_prompt || ''),
|
||||||
}
|
}
|
||||||
editingConfig.value = false
|
editingConfig.value = false
|
||||||
|
|
@ -219,11 +215,6 @@ onUnmounted(() => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
|
||||||
<Typography.Text>Model ID:</Typography.Text>
|
|
||||||
<Input v-model:value="agentForm.model_id" disabled />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<Typography.Text>System Prompt:</Typography.Text>
|
<Typography.Text>System Prompt:</Typography.Text>
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
|
|
|
||||||
|
|
@ -134,9 +134,6 @@ onMounted(() => {
|
||||||
</Tag>
|
</Tag>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Space>
|
</Space>
|
||||||
<span class="config-summary">
|
|
||||||
Model: {{ item.llm_config?.model_id || 'Default' }}
|
|
||||||
</span>
|
|
||||||
</Space>
|
</Space>
|
||||||
</template>
|
</template>
|
||||||
</List.Item.Meta>
|
</List.Item.Meta>
|
||||||
|
|
@ -171,10 +168,6 @@ onMounted(() => {
|
||||||
color: #1f2937;
|
color: #1f2937;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.config-summary {
|
|
||||||
color: #6b7280;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
}
|
|
||||||
.empty {
|
.empty {
|
||||||
padding: 3rem;
|
padding: 3rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue