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