Spaces:
Build error
Build error
Update utils/chatbot_interface4.py
Browse files
utils/chatbot_interface4.py
CHANGED
|
@@ -8,14 +8,15 @@ from utils.response_manager import ResponseManager
|
|
| 8 |
|
| 9 |
class ChatbotInterface:
|
| 10 |
def __init__(self,
|
| 11 |
-
config_path: str = 'config/gradio_config.json',
|
| 12 |
model: str = "gpt-4o-mini",
|
| 13 |
temperature: float = 0,
|
| 14 |
max_output_tokens: int = 600,
|
| 15 |
max_num_results: int = 10,
|
| 16 |
vector_store_id: Optional[str] = None,
|
| 17 |
api_key: Optional[str] = None,
|
| 18 |
-
meta_prompt_file: Optional[str] = None
|
|
|
|
|
|
|
| 19 |
"""
|
| 20 |
Initialize the ChatbotInterface with configuration and custom parameters for ResponseManager.
|
| 21 |
:param config_path: Path to the configuration JSON file.
|
|
|
|
| 8 |
|
| 9 |
class ChatbotInterface:
|
| 10 |
def __init__(self,
|
|
|
|
| 11 |
model: str = "gpt-4o-mini",
|
| 12 |
temperature: float = 0,
|
| 13 |
max_output_tokens: int = 600,
|
| 14 |
max_num_results: int = 10,
|
| 15 |
vector_store_id: Optional[str] = None,
|
| 16 |
api_key: Optional[str] = None,
|
| 17 |
+
meta_prompt_file: Optional[str] = None,
|
| 18 |
+
config_path: str = 'config/gradio_config.json'
|
| 19 |
+
):
|
| 20 |
"""
|
| 21 |
Initialize the ChatbotInterface with configuration and custom parameters for ResponseManager.
|
| 22 |
:param config_path: Path to the configuration JSON file.
|