Update api/utils.py
Browse files- api/utils.py +10 -0
api/utils.py
CHANGED
|
@@ -26,6 +26,16 @@ logger = setup_logger(__name__)
|
|
| 26 |
bearer_scheme = HTTPBearer()
|
| 27 |
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
def create_chat_completion_data(
|
| 30 |
content: str, model: str, timestamp: int, finish_reason: Optional[str] = None
|
| 31 |
) -> Dict[str, Any]:
|
|
|
|
| 26 |
bearer_scheme = HTTPBearer()
|
| 27 |
|
| 28 |
|
| 29 |
+
def log_agent_modes():
|
| 30 |
+
logger.debug("Current AGENT_MODE configurations:")
|
| 31 |
+
for model, config in AGENT_MODE.items():
|
| 32 |
+
logger.debug(f"Model: {model}, Config: {config}")
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
# Call this function at module load
|
| 36 |
+
log_agent_modes()
|
| 37 |
+
|
| 38 |
+
|
| 39 |
def create_chat_completion_data(
|
| 40 |
content: str, model: str, timestamp: int, finish_reason: Optional[str] = None
|
| 41 |
) -> Dict[str, Any]:
|