2024-02-17 18:47:30 +01:00
|
|
|
from typing import TypedDict
|
2024-02-14 17:49:51 +01:00
|
|
|
from .BaseEngine import BaseEngine
|
2024-02-17 18:47:30 +01:00
|
|
|
from .NoneEngine import NoneEngine
|
2024-02-15 14:11:16 +01:00
|
|
|
from . import TTSEngine
|
2024-02-14 17:49:51 +01:00
|
|
|
from . import ScriptEngine
|
2024-02-15 11:23:36 +01:00
|
|
|
from . import LLMEngine
|
2024-02-17 18:47:30 +01:00
|
|
|
from . import CaptioningEngine
|
2024-02-14 17:49:51 +01:00
|
|
|
|
2024-02-17 18:47:30 +01:00
|
|
|
|
|
|
|
|
class EngineDict(TypedDict):
|
|
|
|
|
classes: list[BaseEngine]
|
|
|
|
|
multiple: bool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENGINES: dict[str, EngineDict] = {
|
|
|
|
|
"SimpleLLMEngine": {
|
|
|
|
|
"classes": [LLMEngine.OpenaiLLMEngine, LLMEngine.AnthropicLLMEngine],
|
|
|
|
|
"multiple": False,
|
|
|
|
|
},
|
|
|
|
|
"PowerfulLLMEngine": {
|
|
|
|
|
"classes": [LLMEngine.OpenaiLLMEngine, LLMEngine.AnthropicLLMEngine],
|
|
|
|
|
"multiple": False,
|
|
|
|
|
},
|
|
|
|
|
"ScriptEngine": {
|
|
|
|
|
"classes": [
|
|
|
|
|
ScriptEngine.ShowerThoughtsScriptEngine,
|
|
|
|
|
ScriptEngine.CustomScriptEngine,
|
|
|
|
|
],
|
|
|
|
|
"multiple": False,
|
|
|
|
|
},
|
|
|
|
|
"TTSEngine": {
|
|
|
|
|
"classes": [TTSEngine.CoquiTTSEngine, TTSEngine.ElevenLabsTTSEngine],
|
|
|
|
|
"multiple": False,
|
|
|
|
|
},
|
|
|
|
|
"CaptioningEngine": {
|
|
|
|
|
"classes": [CaptioningEngine.SimpleCaptioningEngine, NoneEngine],
|
|
|
|
|
"multiple": False,
|
|
|
|
|
},
|
2024-02-14 17:49:51 +01:00
|
|
|
}
|