Merge branch 'master' of https://gitea.xiaowang.eu.org/wx44wx/AI-VideoAssistant
This commit is contained in:
@@ -303,32 +303,6 @@ def init_default_llm_models():
|
|||||||
context_length=4096,
|
context_length=4096,
|
||||||
enabled=True,
|
enabled=True,
|
||||||
),
|
),
|
||||||
LLMModel(
|
|
||||||
id="deepseek-reasoner",
|
|
||||||
user_id=1,
|
|
||||||
name="DeepSeek Reasoner",
|
|
||||||
vendor="SiliconFlow",
|
|
||||||
type="text",
|
|
||||||
base_url="https://api.deepseek.com",
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
model_name="deepseek-reasoner",
|
|
||||||
temperature=0.7,
|
|
||||||
context_length=4096,
|
|
||||||
enabled=True,
|
|
||||||
),
|
|
||||||
LLMModel(
|
|
||||||
id="gpt-4o",
|
|
||||||
user_id=1,
|
|
||||||
name="GPT-4o",
|
|
||||||
vendor="OpenAI",
|
|
||||||
type="text",
|
|
||||||
base_url="https://api.openai.com/v1",
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
model_name="gpt-4o",
|
|
||||||
temperature=0.7,
|
|
||||||
context_length=16384,
|
|
||||||
enabled=True,
|
|
||||||
),
|
|
||||||
LLMModel(
|
LLMModel(
|
||||||
id="glm-4",
|
id="glm-4",
|
||||||
user_id=1,
|
user_id=1,
|
||||||
@@ -362,56 +336,28 @@ def init_default_asr_models():
|
|||||||
with db_session() as db:
|
with db_session() as db:
|
||||||
asr_models = [
|
asr_models = [
|
||||||
ASRModel(
|
ASRModel(
|
||||||
id="paraformer-v2",
|
id="FunAudioLLM/SenseVoiceSmall",
|
||||||
user_id=1,
|
user_id=1,
|
||||||
name="Paraformer V2",
|
name="FunAudioLLM/SenseVoiceSmall",
|
||||||
vendor="SiliconFlow",
|
vendor="SiliconFlow",
|
||||||
language="zh",
|
language="Multi-lingual",
|
||||||
base_url="https://api.siliconflow.cn/v1",
|
base_url="https://api.siliconflow.cn/v1",
|
||||||
api_key="YOUR_API_KEY",
|
api_key="YOUR_API_KEY",
|
||||||
model_name="paraformer-v2",
|
model_name="FunAudioLLM/SenseVoiceSmall",
|
||||||
hotwords=["人工智能", "机器学习"],
|
|
||||||
enable_punctuation=True,
|
|
||||||
enable_normalization=True,
|
|
||||||
enabled=True,
|
|
||||||
),
|
|
||||||
ASRModel(
|
|
||||||
id="paraformer-en",
|
|
||||||
user_id=1,
|
|
||||||
name="Paraformer English",
|
|
||||||
vendor="SiliconFlow",
|
|
||||||
language="en",
|
|
||||||
base_url="https://api.siliconflow.cn/v1",
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
model_name="paraformer-en",
|
|
||||||
hotwords=[],
|
hotwords=[],
|
||||||
enable_punctuation=True,
|
enable_punctuation=True,
|
||||||
enable_normalization=True,
|
enable_normalization=True,
|
||||||
enabled=True,
|
enabled=True,
|
||||||
),
|
),
|
||||||
ASRModel(
|
ASRModel(
|
||||||
id="whisper-1",
|
id="TeleAI/TeleSpeechASR",
|
||||||
user_id=1,
|
user_id=1,
|
||||||
name="Whisper",
|
name="TeleAI/TeleSpeechASR",
|
||||||
vendor="OpenAI",
|
|
||||||
language="Multi-lingual",
|
|
||||||
base_url="https://api.openai.com/v1",
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
model_name="whisper-1",
|
|
||||||
hotwords=[],
|
|
||||||
enable_punctuation=True,
|
|
||||||
enable_normalization=True,
|
|
||||||
enabled=True,
|
|
||||||
),
|
|
||||||
ASRModel(
|
|
||||||
id="sensevoice",
|
|
||||||
user_id=1,
|
|
||||||
name="SenseVoice",
|
|
||||||
vendor="SiliconFlow",
|
vendor="SiliconFlow",
|
||||||
language="Multi-lingual",
|
language="Multi-lingual",
|
||||||
base_url="https://api.siliconflow.cn/v1",
|
base_url="https://api.siliconflow.cn/v1",
|
||||||
api_key="YOUR_API_KEY",
|
api_key="YOUR_API_KEY",
|
||||||
model_name="sensevoice",
|
model_name="TeleAI/TeleSpeechASR",
|
||||||
hotwords=[],
|
hotwords=[],
|
||||||
enable_punctuation=True,
|
enable_punctuation=True,
|
||||||
enable_normalization=True,
|
enable_normalization=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user