Skip to content

Commit ab9df68

Browse files
authored
Merge pull request #150 from Ssskrilex/feat_en_custom_support
feat(demohouse/shop_assist): update arkitect in shop assist
2 parents 5b77d62 + 9e95752 commit ab9df68

25 files changed

+2381
-3031
lines changed

demohouse/quant_trading/quant_trading/call_volcano_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
# Licensed under the 【火山方舟】原型应用软件自用许可协议
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# https://www.volcengine.com/docs/82379/1433703
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
import os
213
from volcenginesdkarkruntime import Ark
314

demohouse/quant_trading/quant_trading/server.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
# Licensed under the 【火山方舟】原型应用软件自用许可协议
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# https://www.volcengine.com/docs/82379/1433703
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
"""
213
默认llm逻辑
314
"""
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
# Licensed under the 【火山方舟】原型应用软件自用许可协议
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# https://www.volcengine.com/docs/82379/1433703
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
from .base_api import BaseAPI
213
from .individual_stock_prediction_task import IndividualStockPredictionTask
314
from .stocks_prediction_task import StocksPredictionTask

demohouse/quant_trading/test/test_llm_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
# Licensed under the 【火山方舟】原型应用软件自用许可协议
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# https://www.volcengine.com/docs/82379/1433703
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
import os
213
import pdb
314
import json

demohouse/quant_trading/test/test_llm_openai_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
# Licensed under the 【火山方舟】原型应用软件自用许可协议
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# https://www.volcengine.com/docs/82379/1433703
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
import os
213
import pdb
314
from openai import OpenAI

demohouse/quant_trading/test/test_vlm_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
# Licensed under the 【火山方舟】原型应用软件自用许可协议
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# https://www.volcengine.com/docs/82379/1433703
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
import os
213
import time
314

demohouse/quant_trading/test/test_vlm_openai_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
# Licensed under the 【火山方舟】原型应用软件自用许可协议
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# https://www.volcengine.com/docs/82379/1433703
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
import os
213
import pdb
314

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10

demohouse/shop_assist/backend/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030

3131
## 环境准备
3232

33-
- Python 版本要求大于等于 3.9,小于 3.12
34-
- Poetry 1.6.1 版本,可参考以下命令安装
35-
pip install poetry==1.6.1
33+
- Python 版本要求大于等于 3.10,小于 3.12
3634
- <a target="_blank" href="https://console.volcengine.com/iam/keymanage/">获取火山引擎 AK SK</a> | <a target="_blank" href="https://www.volcengine.com/docs/6291/65568">参考文档</a>
3735
注意:如果使用的是 IAM 子用户的 AK SK,请联系管理员授予该用户 ArkFullAccess + TOSFullAccess 预设策略,或者 AdministratorAccess 预设策略。
3836
- 在<a target="_blank" href="https://console.volcengine.com/ark/region:ark+cn-beijing/openManagement?LLM=%7B%7D&OpenTokenDrawer=false">开通管理页</a>开通 doubao-1-5-pro-32k 模型。
@@ -94,15 +92,14 @@ export ARK_API_KEY="your_api_key"
9492
```shell
9593
python -m venv .venv
9694
source .venv/bin/activate
97-
pip install poetry==1.6.1
98-
99-
poetry install
95+
pip install uv
96+
uv sync
10097
```
10198

10299
6. 启动服务
103100

104101
```shell
105-
poetry run python main.py
102+
uv run main.py
106103
```
107104

108105
7. 后端服务启动成功后,可在本地通过 curl 方式对服务进行调用,体验以下5个场景的能力。

demohouse/shop_assist/backend/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
22
# Licensed under the 【火山方舟】原型应用软件自用许可协议
33
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
4+
# You may obtain a copy of the License at
55
# https://www.volcengine.com/docs/82379/1433703
66
# Unless required by applicable law or agreed to in writing, software
77
# distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)