更新Ai Chat name的重命名规则为默认规则
This commit is contained in:
parent
dee65b2cce
commit
4105955df4
@ -884,6 +884,7 @@ onUnmounted(() => {
|
||||
|
||||
.drop-text {
|
||||
font-size: 14px;
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
/* Tab views */
|
||||
|
||||
8
jingrow/ai/pagetype/ai_chat/ai_chat.js
Normal file
8
jingrow/ai/pagetype/ai_chat/ai_chat.js
Normal file
@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2026, JINGROW and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
// jingrow.ui.form.on("Ai Chat", {
|
||||
// refresh(frm) {
|
||||
|
||||
// },
|
||||
// });
|
||||
@ -2,8 +2,7 @@
|
||||
"actions": [],
|
||||
"allow_import": 1,
|
||||
"allow_rename": 1,
|
||||
"autoname": "AICHAT-.#####",
|
||||
"creation": "2026-05-24 10:00:00.000000",
|
||||
"creation": "2026-05-24 10:00:00",
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"info_tab",
|
||||
@ -37,24 +36,24 @@
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"default": "Jingrow",
|
||||
"fieldname": "model",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Model",
|
||||
"options": "Jingrow\nDeepSeek\nDoubao\nChatGPT",
|
||||
"default": "Jingrow"
|
||||
"options": "Jingrow\nDeepSeek\nDoubao\nChatGPT"
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_basic",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"default": "进行中",
|
||||
"fieldname": "status",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Status",
|
||||
"options": "\n进行中\n已结束\n已归档",
|
||||
"default": "进行中"
|
||||
"options": "\n进行中\n已结束\n已归档"
|
||||
},
|
||||
{
|
||||
"fieldname": "reference_pagetype",
|
||||
@ -91,17 +90,17 @@
|
||||
"label": "Statistics"
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"fieldname": "message_count",
|
||||
"fieldtype": "Int",
|
||||
"label": "Message Count",
|
||||
"default": "0",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"fieldname": "total_tokens",
|
||||
"fieldtype": "Int",
|
||||
"label": "Total Tokens",
|
||||
"default": "0",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
@ -111,9 +110,9 @@
|
||||
{
|
||||
"fieldname": "last_message_at",
|
||||
"fieldtype": "Datetime",
|
||||
"in_list_view": 1,
|
||||
"label": "Last Message At",
|
||||
"read_only": 1,
|
||||
"in_list_view": 1
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "summary",
|
||||
@ -124,7 +123,7 @@
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2026-05-24 10:00:00.000000",
|
||||
"modified": "2026-06-20 15:00:18.169066",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Ai",
|
||||
"name": "Ai Chat",
|
||||
@ -149,4 +148,4 @@
|
||||
"sort_order": "DESC",
|
||||
"states": [],
|
||||
"track_changes": 1
|
||||
}
|
||||
}
|
||||
@ -18,10 +18,10 @@ class AiChat(Page):
|
||||
context: DF.JSON | None
|
||||
last_message_at: DF.Datetime | None
|
||||
message_count: DF.Int
|
||||
model: DF.Literal["", "Jingrow", "DeepSeek", "Doubao", "ChatGPT"]
|
||||
model: DF.Literal["Jingrow", "DeepSeek", "Doubao", "ChatGPT"]
|
||||
reference_name: DF.DynamicLink | None
|
||||
reference_pagetype: DF.Link | None
|
||||
status: DF.Literal["", "进行中", "已结束", "已归档"]
|
||||
status: DF.Literal["", "\u8fdb\u884c\u4e2d", "\u5df2\u7ed3\u675f", "\u5df2\u5f52\u6863"]
|
||||
summary: DF.Text | None
|
||||
system_prompt: DF.Text | None
|
||||
title: DF.Data
|
||||
|
||||
9
jingrow/ai/pagetype/ai_chat/test_ai_chat.py
Normal file
9
jingrow/ai/pagetype/ai_chat/test_ai_chat.py
Normal file
@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2026, JINGROW and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import jingrow
|
||||
from jingrow.tests.utils import JingrowTestCase
|
||||
|
||||
|
||||
class TestAiChat(JingrowTestCase):
|
||||
pass
|
||||
Loading…
x
Reference in New Issue
Block a user