Spaces:
Running
Running
Commit
·
be7e1a2
1
Parent(s):
fcc601a
fix: address CodeRabbit feedback
Browse files- Sort .env.example model keys alphabetically.
- Narrow return type of create_demo() to gr.ChatInterface.
- Confirmed embedding model vars are already wired in src/utils/config.py.
- .env.example +1 -1
- src/app.py +1 -1
.env.example
CHANGED
|
@@ -8,8 +8,8 @@ OPENAI_API_KEY=sk-your-key-here
|
|
| 8 |
ANTHROPIC_API_KEY=sk-ant-your-key-here
|
| 9 |
|
| 10 |
# Model names (optional - sensible defaults)
|
| 11 |
-
OPENAI_MODEL=gpt-4-turbo
|
| 12 |
ANTHROPIC_MODEL=claude-3-5-sonnet-20240620
|
|
|
|
| 13 |
|
| 14 |
# ============== EMBEDDINGS ==============
|
| 15 |
|
|
|
|
| 8 |
ANTHROPIC_API_KEY=sk-ant-your-key-here
|
| 9 |
|
| 10 |
# Model names (optional - sensible defaults)
|
|
|
|
| 11 |
ANTHROPIC_MODEL=claude-3-5-sonnet-20240620
|
| 12 |
+
OPENAI_MODEL=gpt-4-turbo
|
| 13 |
|
| 14 |
# ============== EMBEDDINGS ==============
|
| 15 |
|
src/app.py
CHANGED
|
@@ -186,7 +186,7 @@ async def research_agent(
|
|
| 186 |
yield f"❌ **Error**: {e!s}"
|
| 187 |
|
| 188 |
|
| 189 |
-
def create_demo() ->
|
| 190 |
"""
|
| 191 |
Create the Gradio demo interface with MCP support.
|
| 192 |
|
|
|
|
| 186 |
yield f"❌ **Error**: {e!s}"
|
| 187 |
|
| 188 |
|
| 189 |
+
def create_demo() -> gr.ChatInterface:
|
| 190 |
"""
|
| 191 |
Create the Gradio demo interface with MCP support.
|
| 192 |
|