Skip to content

Commit bac04bd

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

3 files changed

Lines changed: 3 additions & 14 deletions

File tree

projects/llm_framework/config_defaults.mk

Lines changed: 0 additions & 1 deletion
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

projects/llm_framework/main_openai_api/SConstruct

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,19 @@ 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')
21-
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)
2720

21+
ModuleLLMOpenAIPluginPath = wget_github_commit('https://github.com/Abandon-ht/ModuleLLM-OpenAI-Plugin.git', '1077efbe201ea3f29517f5ce4a0cfc3b04c25d1d', True)
2822
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')
2923

3024

31-
if os.path.exists(old_dir_path):
32-
os.rename(old_dir_path, new_dir_path)
33-
3425
DEFINITIONS += ['-O3', '-fopenmp', '-std=c++17']
3526
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=./']
3627
LINK_SEARCH_PATH += [ADir('../static_lib')]
3728

3829
STATIC_FILES += Glob('mode_*.json')
3930

4031

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

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

0 commit comments

Comments
 (0)