Spaces:
Runtime error
Runtime error
Update useapi.py
Browse files
useapi.py
CHANGED
@@ -61,7 +61,7 @@ def get_models():
|
|
61 |
# 过滤掉 'gpt-4o' 和 'gpt-4o-mini'
|
62 |
if model_info['model'] not in ['mythomax-13b']:
|
63 |
if model_info['model'] in ['qwen-2-7b', 'gemma-2-9b', 'llama-3.1-8b', 'internLM-2.5-7b']:
|
64 |
-
weight =
|
65 |
else:
|
66 |
weight = int(math.ceil(24 / model_info['price'] + 0.5))
|
67 |
self.models.extend([model_info['model']] * weight)
|
|
|
61 |
# 过滤掉 'gpt-4o' 和 'gpt-4o-mini'
|
62 |
if model_info['model'] not in ['mythomax-13b']:
|
63 |
if model_info['model'] in ['qwen-2-7b', 'gemma-2-9b', 'llama-3.1-8b', 'internLM-2.5-7b']:
|
64 |
+
weight = 13
|
65 |
else:
|
66 |
weight = int(math.ceil(24 / model_info['price'] + 0.5))
|
67 |
self.models.extend([model_info['model']] * weight)
|