feat: jinja2

This commit is contained in:
Yeuoly
2024-03-10 20:24:16 +08:00
committed by takatost
parent a0a1618869
commit e0883302d2
4 changed files with 64 additions and 6 deletions

View File

@ -9,7 +9,7 @@ MOCK = os.getenv('MOCK_SWITCH', 'false') == 'true'
class MockedCodeExecutor:
@classmethod
def invoke(cls, language: Literal['python3', 'javascript', 'jina2'], code: str, inputs: dict) -> dict:
def invoke(cls, language: Literal['python3', 'javascript', 'jinja2'], code: str, inputs: dict) -> dict:
# invoke directly
if language == 'python3':
return {