Skip to content

Commit a0d3bcf

Browse files
authored
feat(ci): update helm config (#157)
1 parent cc593fc commit a0d3bcf

12 files changed

+200
-282
lines changed
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
id: 2002
2+
name: Doubao Model
3+
icon_uri: default_icon/doubao_v2.png
4+
icon_url: ""
5+
description:
6+
zh: 豆包模型简介
7+
en: doubao model description
8+
default_parameters:
9+
- name: temperature
10+
label:
11+
zh: 生成随机性
12+
en: Temperature
13+
desc:
14+
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
15+
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
16+
type: float
17+
min: "0"
18+
max: "1"
19+
default_val:
20+
balance: "0.8"
21+
creative: "1"
22+
default_val: "1.0"
23+
precise: "0.3"
24+
precision: 1
25+
options: []
26+
style:
27+
widget: slider
28+
label:
29+
zh: 生成多样性
30+
en: Generation diversity
31+
- name: max_tokens
32+
label:
33+
zh: 最大回复长度
34+
en: Response max length
35+
desc:
36+
zh: 控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。
37+
en: You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.
38+
type: int
39+
min: "1"
40+
max: "4096"
41+
default_val:
42+
default_val: "4096"
43+
options: []
44+
style:
45+
widget: slider
46+
label:
47+
zh: 输入及输出设置
48+
en: Input and output settings
49+
- name: top_p
50+
label:
51+
zh: Top P
52+
en: Top P
53+
desc:
54+
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
55+
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
56+
type: float
57+
min: "0"
58+
max: "1"
59+
default_val:
60+
default_val: "0.7"
61+
precision: 2
62+
options: []
63+
style:
64+
widget: slider
65+
label:
66+
zh: 生成多样性
67+
en: Generation diversity
68+
- name: response_format
69+
label:
70+
zh: 输出格式
71+
en: Response format
72+
desc:
73+
zh: '- **文本**: 使用普通文本格式回复\n- **Markdown**: 将引导模型使用Markdown格式输出回复\n- **JSON**: 将引导模型使用JSON格式输出'
74+
en: '**Response Format**:\n\n- **Text**: Replies in plain text format\n- **Markdown**: Uses Markdown format for replies\n- **JSON**: Uses JSON format for replies'
75+
type: int
76+
min: ""
77+
max: ""
78+
default_val:
79+
default_val: "0"
80+
options:
81+
- label: Text
82+
value: "0"
83+
- label: Markdown
84+
value: "1"
85+
- label: JSON
86+
value: "2"
87+
style:
88+
widget: radio_buttons
89+
label:
90+
zh: 输入及输出设置
91+
en: Input and output settings
92+
meta:
93+
name: Doubao
94+
protocol: ark
95+
capability:
96+
function_call: true
97+
input_modal:
98+
- text
99+
- image
100+
input_tokens: 128000
101+
json_mode: false
102+
max_tokens: 128000
103+
output_modal:
104+
- text
105+
output_tokens: 16384
106+
prefix_caching: false
107+
reasoning: false
108+
prefill_response: false
109+
conn_config:
110+
base_url: ""
111+
api_key: ""
112+
timeout: 0s
113+
model: ""
114+
temperature: 0.1
115+
frequency_penalty: 0
116+
presence_penalty: 0
117+
max_tokens: 4096
118+
top_p: 0.7
119+
top_k: 0
120+
stop: []
121+
openai: null
122+
claude: null
123+
ark:
124+
region: ""
125+
access_key: ""
126+
secret_key: ""
127+
retry_times: null
128+
custom_header: {}
129+
deepseek: null
130+
qwen: null
131+
gemini: null
132+
custom: {}
133+
status: 0

helm/charts/opencoze/files/es/coze_resource.index-template.json

Lines changed: 0 additions & 74 deletions
This file was deleted.

helm/charts/opencoze/files/es/project_draft.index-template.json

Lines changed: 0 additions & 79 deletions
This file was deleted.

helm/charts/opencoze/templates/deployment.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ spec:
5757
image: "{{ .Values.cozeServer.image.repository }}:{{ .Values.cozeServer.image.tag }}"
5858
imagePullPolicy: {{ .Values.cozeServer.image.pullPolicy }}
5959
ports:
60-
- name: http
61-
containerPort: {{ .Values.cozeServer.service.port }}
60+
{{- range .Values.cozeServer.service.ports }}
61+
- name: {{ .name }}
62+
containerPort: {{ .targetPort }}
63+
{{- end }}
6264
env:
6365
- name: MYSQL_HOST
6466
value: "{{ include "opencoze.fullname" . }}-mysql"
@@ -95,13 +97,18 @@ spec:
9597
value: {{ $val | quote }}
9698
{{- end }}
9799

98-
{{- if .Values.cozeServer.confHostPath }}
99100
volumeMounts:
101+
- name: model-config
102+
mountPath: /app/resources/conf/model
103+
{{- if .Values.cozeServer.confHostPath }}
100104
- name: opencoze-server-conf
101105
mountPath: /app/resources/conf
102106
{{- end }}
103-
{{- if .Values.cozeServer.confHostPath }}
104107
volumes:
108+
- name: model-config
109+
configMap:
110+
name: {{ include "opencoze.fullname" . }}-model-config
111+
{{- if .Values.cozeServer.confHostPath }}
105112
- name: opencoze-server-conf
106113
hostPath:
107114
path: {{ .Values.cozeServer.confHostPath }}

helm/charts/opencoze/templates/elasticsearch-init-configmap.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

helm/charts/opencoze/templates/elasticsearch-init-job.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)