Merge branch 'main' of github.com:jina-ai/microchain into refactor_remove_system_definition_examples

This commit is contained in:
Florian Hönicke
2023-05-04 21:24:28 +02:00
12 changed files with 33 additions and 17 deletions

View File

@@ -147,7 +147,7 @@ metas:
with open(os.path.join(os.path.dirname(__file__), 'static_files', 'microservice', 'jina_wrapper.py'), 'r', encoding='utf-8') as f:
microservice_executor_boilerplate = f.read()
microservice_executor_code = microservice_executor_boilerplate.replace('class Dev-GPTExecutor(Executor):',
microservice_executor_code = microservice_executor_boilerplate.replace('class DevGPTExecutor(Executor):',
f'class {microservice_name}(Executor):')
persist_file(microservice_executor_code, os.path.join(MICROSERVICE_FOLDER_v1, EXECUTOR_FILE_NAME))