Spaces:
Sleeping
Sleeping
Commit
·
76fb156
1
Parent(s):
0106791
Fix: Frontend url handling changed
Browse files
app.py
CHANGED
|
@@ -1069,13 +1069,13 @@ async def initialize_components(state: AppState):
|
|
| 1069 |
logger.info("Retrieval components initialized")
|
| 1070 |
|
| 1071 |
# Initialize generation components
|
| 1072 |
-
state.response_generator = get_response_generator(provider = LLMProvider.
|
| 1073 |
-
model_name = settings.
|
| 1074 |
)
|
| 1075 |
|
| 1076 |
-
state.llm_client = get_llm_client(provider = LLMProvider.
|
| 1077 |
|
| 1078 |
-
logger.info(f"Generation components initialized: model={settings.
|
| 1079 |
|
| 1080 |
# Check LLM health
|
| 1081 |
if state.llm_client.check_health():
|
|
|
|
| 1069 |
logger.info("Retrieval components initialized")
|
| 1070 |
|
| 1071 |
# Initialize generation components
|
| 1072 |
+
state.response_generator = get_response_generator(provider = LLMProvider.OPENAI,
|
| 1073 |
+
model_name = settings.OPENAI_MODEL,
|
| 1074 |
)
|
| 1075 |
|
| 1076 |
+
state.llm_client = get_llm_client(provider = LLMProvider.OPENAI)
|
| 1077 |
|
| 1078 |
+
logger.info(f"Generation components initialized: model={settings.OPENAI_MODEL}")
|
| 1079 |
|
| 1080 |
# Check LLM health
|
| 1081 |
if state.llm_client.check_health():
|