Update api/utils.py
Browse files- api/utils.py +0 -6
api/utils.py
CHANGED
@@ -19,7 +19,6 @@ from api.config import (
|
|
19 |
AGENT_MODE,
|
20 |
TRENDING_AGENT_MODE,
|
21 |
MODEL_PREFIXES,
|
22 |
-
MODEL_REFERERS,
|
23 |
BASE_URL
|
24 |
)
|
25 |
from api.models import ChatRequest
|
@@ -104,11 +103,6 @@ def strip_model_prefix(content: str, model_prefix: Optional[str] = None) -> str:
|
|
104 |
return content
|
105 |
|
106 |
|
107 |
-
def get_referer_url(chat_id: str, model: str) -> str:
|
108 |
-
"""Generate the referer URL based on specific models listed in MODEL_REFERERS."""
|
109 |
-
if model in MODEL_REFERERS:
|
110 |
-
return f"{BASE_URL}/chat/{chat_id}?model={model}"
|
111 |
-
return BASE_URL
|
112 |
|
113 |
|
114 |
def get_agent_mode_config(model: str) -> Dict[str, Any]:
|
|
|
19 |
AGENT_MODE,
|
20 |
TRENDING_AGENT_MODE,
|
21 |
MODEL_PREFIXES,
|
|
|
22 |
BASE_URL
|
23 |
)
|
24 |
from api.models import ChatRequest
|
|
|
103 |
return content
|
104 |
|
105 |
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
|
108 |
def get_agent_mode_config(model: str) -> Dict[str, Any]:
|