Update backend api

This commit is contained in:
Xin Wang
2026-02-08 15:52:16 +08:00
parent 727fe8a997
commit 7012f8edaf
15 changed files with 3436 additions and 19 deletions

View File

@@ -100,3 +100,38 @@ def sample_call_record_data():
"assistant_id": None,
"source": "debug"
}
@pytest.fixture
def sample_llm_model_data():
"""Sample LLM model data for testing"""
return {
"id": "test-llm-001",
"name": "Test LLM Model",
"vendor": "TestVendor",
"type": "text",
"base_url": "https://api.test.com/v1",
"api_key": "test-api-key",
"model_name": "test-model",
"temperature": 0.7,
"context_length": 4096,
"enabled": True
}
@pytest.fixture
def sample_asr_model_data():
"""Sample ASR model data for testing"""
return {
"id": "test-asr-001",
"name": "Test ASR Model",
"vendor": "TestVendor",
"language": "zh",
"base_url": "https://api.test.com/v1",
"api_key": "test-api-key",
"model_name": "paraformer-v2",
"hotwords": ["测试", "语音"],
"enable_punctuation": True,
"enable_normalization": True,
"enabled": True
}