Update backend api
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user