Skip to content

Commit 1620364

Browse files
committed
[update] ModuleLLMOpenAIPlugin down
1 parent 3c419d7 commit 1620364

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

Diff for: projects/llm_framework/config_defaults.mk

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ CONFIG_TOOLCHAIN_FLAGS="-O0"
1717
CONFIG_EVENTPP_ENABLED=y
1818
CONFIG_LHV_ENABLED=y
1919
CONFIG_LHV_WITH_EVPP=y
20-
CONFIG_EVENTPP_ENABLED=y
2120
CONFIG_STACKFLOW_ENABLED=y
2221
CONFIG_UTILITIES_BASE64_ENABLED=y
2322
CONFIG_SINGLE_HEADER_LIBS_ENABLED=y

Diff for: projects/llm_framework/main_openai_api/SConstruct

+4-11
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,22 @@ LDFLAGS = []
1717
LINK_SEARCH_PATH = []
1818
STATIC_FILES = []
1919

20-
down_path = check_wget_down("https://github.com/Abandon-ht/ModuleLLM-OpenAI-Plugin/archive/1077efbe201ea3f29517f5ce4a0cfc3b04c25d1d.zip", 'M5Module-LLM_OpenAI_API.zip')
20+
ModuleLLMOpenAIPluginPath = os.path.join(os.environ['GIT_REPO_PATH'], 'ModuleLLM-OpenAI-Plugin')
21+
if not os.path.exists(ModuleLLMOpenAIPluginPath):
22+
wget_github_commit('https://github.com/Abandon-ht/ModuleLLM-OpenAI-Plugin.git', '1077efbe201ea3f29517f5ce4a0cfc3b04c25d1d')
2123

22-
old_dir_name = 'ModuleLLM-OpenAI-Plugin-1077efbe201ea3f29517f5ce4a0cfc3b04c25d1d'
23-
new_dir_name = 'ModuleLLM-OpenAI-Plugin'
24-
25-
old_dir_path = os.path.join(down_path, old_dir_name)
26-
new_dir_path = os.path.join(down_path, new_dir_name)
2724

2825
python_venv = check_wget_down("https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/linux/llm/m5stack_llm-openai-api-python-venv_v1.5.tar.gz", 'm5stack_llm-llm-openai-api-python-venv_v1.5.tar.gz')
2926

3027

31-
if os.path.exists(old_dir_path):
32-
os.rename(old_dir_path, new_dir_path)
33-
3428
DEFINITIONS += ['-O3', '-fopenmp', '-std=c++17']
3529
LDFLAGS+=['-Wl,-rpath=/opt/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib/gcc-10.3', '-Wl,-rpath=/opt/lib', '-Wl,-rpath=/opt/usr/lib', '-Wl,-rpath=./']
3630
LINK_SEARCH_PATH += [ADir('../static_lib')]
3731

3832
STATIC_FILES += Glob('mode_*.json')
3933

4034

41-
# STATIC_FILES += [os.path.join(down_path, 'M5Module-LLM_OpenAI_API-e3c467b8d8e5e0605b17436a5c5361f9ec1a7e96')]
42-
STATIC_FILES += [new_dir_path]
35+
STATIC_FILES += [ModuleLLMOpenAIPluginPath]
4336
STATIC_FILES += [os.path.join(python_venv, 'openai-api')]
4437

4538
env['COMPONENTS'].append({'target':'llm_openai_api',

0 commit comments

Comments
 (0)