Skip to content

Commit 56733b0

Browse files
committed
Merge remote-tracking branch 'origin' into feature/optimize-the-Dockerfile-of-kubechat
2 parents 57251d2 + 043cb85 commit 56733b0

File tree

4 files changed

+8
-224
lines changed

4 files changed

+8
-224
lines changed

config/settings.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
# Application definition
3737

3838
INSTALLED_APPS = [
39-
# 'smart_chart.smartui',
40-
# 'smart_chart.echart',
41-
"simpleui",
4239
"kubechat",
4340
"corsheaders",
4441
"django.contrib.admin",
@@ -261,25 +258,6 @@
261258

262259
CODE_STORAGE_DIR = env.str("CODE_STORAGE_DIR", default=str(BASE_DIR))
263260

264-
# simpleui
265-
SIMPLEUI_CONFIG = {
266-
'system_keep': True,
267-
# 'menu_display': [],
268-
'dynamic': False, # Set whether to enable dynamic menus. Default is False.
269-
}
270-
# Hide the advertisement links on the right side of SimpleUI and the usage analysis.
271-
SIMPLEUI_HOME_INFO = False
272-
SIMPLEUI_ANALYSIS = False
273-
274-
# Hide the quick operations and recent actions on the homepage.
275-
SIMPLEUI_HOME_QUICK = True
276-
SIMPLEUI_HOME_ACTION = True
277-
278-
SIMPLEUI_HOME_ICON = 'fa fa-eye'
279-
280-
# Set the Home icon redirect link. It will open in a new window.
281-
SIMPLEUI_INDEX = 'https://www.apecloud.com'
282-
283261
# prometheus
284262
INSTALLED_APPS += ["django_prometheus"]
285263

kubechat/llm/prompts.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
- Accurately convey the facts and background of the original text when translating.
360360
- Even if it is free translation, retain the original paragraph format, as well as retain terms, such as FLAC, JPEG, etc. Retain company abbreviations, such as Microsoft, Amazon, etc.
361361
- Also retain references to papers and other technical articles, such as [20] references.
362-
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as Figure 1: ", "Table 1: " is translated as: “Figure 1: ".
362+
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as "Figure 1: ", "Table 1: " is translated as: "Table 1: ".
363363
- Replace full-width brackets with half-width brackets, add a half-width space before the left bracket, and add a half-width space after the right bracket.
364364
- The input format is Markdown format, and the output format must also retain the original Markdown format
365365
- The following is a common AI-related terminology correspondence table:
@@ -400,7 +400,7 @@
400400
- Accurately convey the facts and background of the original text when translating.
401401
- Even if it is free translation, retain the original paragraph format, as well as retain terms, such as FLAC, JPEG, etc. Retain company abbreviations, such as Microsoft, Amazon, etc.
402402
- Also retain references to papers and other technical articles, such as [20] references.
403-
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as Figure 1: ", "Table 1: " is translated as: “Figure 1: ".
403+
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as "Figure 1: ", "Table 1: " is translated as: "Table 1: ".
404404
- Replace full-width brackets with half-width brackets, add a half-width space before the left bracket, and add a half-width space after the right bracket.
405405
- The input format is Markdown format, and the output format must also retain the original Markdown format
406406
- The following is a common AI-related terminology correspondence table:
@@ -441,7 +441,7 @@
441441
- Accurately convey the facts and background of the original text when translating.
442442
- Even if it is free translation, retain the original paragraph format, as well as retain terms, such as FLAC, JPEG, etc. Retain company abbreviations, such as Microsoft, Amazon, etc.
443443
- Also retain references to papers and other technical articles, such as [20] references.
444-
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as Figure 1: ", "Table 1: " is translated as: “Figure 1: ".
444+
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as "Figure 1: ", "Table 1: " is translated as: "Table 1: ".
445445
- Replace full-width brackets with half-width brackets, add a half-width space before the left bracket, and add a half-width space after the right bracket.
446446
- The input format is Markdown format, and the output format must also retain the original Markdown format
447447
- The following is a common AI-related terminology correspondence table:
@@ -633,7 +633,7 @@
633633
- When translating, accurately convey the facts and background of the original text.
634634
- Even if it's a bit of paraphrasing, maintain the original paragraph format, as well as retain terms such as FLAC, JPEG, etc. Keep company abbreviations like Microsoft, Amazon, etc.
635635
- At the same time, maintain references to papers and other technical articles, such as [20] references.
636-
- For Figures and Tables, while translating, maintain the original format, for example, "Figure 1: " is translated as " 1: ", "Table 1: " is translated as " 1: ".
636+
- For Figures and Tables, while translating, maintain the original format, for example, " 1: " is translated as "Figure 1: ", " 1: " is translated as "Table 1: ".
637637
- Change full-width parentheses to half-width parentheses, and add a half-width space before the left parenthesis and after the right parenthesis.
638638
- Input format is in Markdown, and the output format must also retain the original Markdown format.
639639
- Below is a common AI-related terminology vocabulary table:
@@ -674,7 +674,7 @@
674674
- Accurately convey the facts and background of the original text when translating.
675675
- Even if it is free translation, retain the original paragraph format, as well as retain terms, such as FLAC, JPEG, etc. Retain company abbreviations, such as Microsoft, Amazon, etc.
676676
- Also retain references to papers and other technical articles, such as [20] references.
677-
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as Figure 1: ", "Table 1: " is translated as: “Figure 1: ".
677+
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as "Figure 1: ", "Table 1: " is translated as: "Table 1: ".
678678
- Replace full-width brackets with half-width brackets, add a half-width space before the left bracket, and add a half-width space after the right bracket.
679679
- The input format is Markdown format, and the output format must also retain the original Markdown format
680680
- The following is a common AI-related terminology correspondence table:
@@ -715,7 +715,7 @@
715715
- Accurately convey the facts and background of the original text when translating.
716716
- Even if it is free translation, retain the original paragraph format, as well as retain terms, such as FLAC, JPEG, etc. Retain company abbreviations, such as Microsoft, Amazon, etc.
717717
- Also retain references to papers and other technical articles, such as [20] references.
718-
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as Figure 1: ", "Table 1: " is translated as: “Figure 1: ".
718+
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as "Figure 1: ", "Table 1: " is translated as: "Table 1: ".
719719
- Replace full-width brackets with half-width brackets, add a half-width space before the left bracket, and add a half-width space after the right bracket.
720720
- The input format is Markdown format, and the output format must also retain the original Markdown format
721721
- The following is a common AI-related terminology correspondence table:
@@ -756,7 +756,7 @@
756756
- Accurately convey the facts and background of the original text when translating.
757757
- Even if it is free translation, retain the original paragraph format, as well as retain terms, such as FLAC, JPEG, etc. Retain company abbreviations, such as Microsoft, Amazon, etc.
758758
- Also retain references to papers and other technical articles, such as [20] references.
759-
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as Figure 1: ", "Table 1: " is translated as: “Figure 1: ".
759+
- For Figure and Table, keep the original format while translating, for example: "Figure 1: " is translated as "Figure 1: ", "Table 1: " is translated as: "Table 1: ".
760760
- Replace full-width brackets with half-width brackets, add a half-width space before the left bracket, and add a half-width space after the right bracket.
761761
- The input format is Markdown format, and the output format must also retain the original Markdown format
762762
- The following is a common AI-related terminology correspondence table:

poetry.lock

Lines changed: 1 addition & 192 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ django = "^4.2.2"
1515
pydantic = "^1.10.9"
1616
sqlalchemy = "^2.0.16"
1717
sqlparse = "^0.4.4"
18-
llama-hub = "^0.0.3"
1918
pymysql = "^1.0.3"
2019
cryptography = "^41.0.1"
2120
python-dotenv = "^1.0.0"
@@ -50,11 +49,9 @@ mypy = "^1.4.1"
5049
django-cors-headers = "^4.1.0"
5150
socksio = "^1.0.0"
5251
transformers-stream-generator = "^0.0.4"
53-
django-simpleui = "^2023.3.1"
5452
django-prometheus = "^2.3.1"
5553
whitenoise = "^6.5.0"
5654
types-requests = "^2.31.0.2"
57-
lark-oapi = "^1.0.11"
5855
text2vec = "^1.2.2"
5956
pytablewriter = "^1.0.0"
6057
tabulate = "^0.9.0"

0 commit comments

Comments
 (0)