Spaces:
Sleeping
Sleeping
config.yaml
Browse files- app_with_mcp.py +3 -3
- requirements.txt +1 -1
app_with_mcp.py
CHANGED
@@ -262,7 +262,7 @@ def update_fields(preset_model: str):
|
|
262 |
# Return default values, let user configure themselves
|
263 |
return (
|
264 |
default_config.api_type,
|
265 |
-
|
266 |
default_config.base_url,
|
267 |
default_config.api_version,
|
268 |
default_config.model,
|
@@ -275,7 +275,7 @@ def update_fields(preset_model: str):
|
|
275 |
api_type = config_obj.api_type if config_obj.api_type in ["azure", "openai", "groq", "ollama", "anthropic", "gemini"] else "azure"
|
276 |
return (
|
277 |
api_type,
|
278 |
-
|
279 |
config_obj.base_url,
|
280 |
config_obj.api_version,
|
281 |
config_obj.model,
|
@@ -376,7 +376,7 @@ with gr.Blocks(title="Minion Brain Chat with MCP Tools") as demo:
|
|
376 |
|
377 |
api_key_input = gr.Textbox(
|
378 |
label="API Key",
|
379 |
-
value=
|
380 |
type="password",
|
381 |
info="Your API key"
|
382 |
)
|
|
|
262 |
# Return default values, let user configure themselves
|
263 |
return (
|
264 |
default_config.api_type,
|
265 |
+
default_config.api_key, # Show real API key instead of empty
|
266 |
default_config.base_url,
|
267 |
default_config.api_version,
|
268 |
default_config.model,
|
|
|
275 |
api_type = config_obj.api_type if config_obj.api_type in ["azure", "openai", "groq", "ollama", "anthropic", "gemini"] else "azure"
|
276 |
return (
|
277 |
api_type,
|
278 |
+
config_obj.api_key, # Show real API key from preset config
|
279 |
config_obj.base_url,
|
280 |
config_obj.api_version,
|
281 |
config_obj.model,
|
|
|
376 |
|
377 |
api_key_input = gr.Textbox(
|
378 |
label="API Key",
|
379 |
+
value=default_config.api_key, # Show real API key instead of masked value
|
380 |
type="password",
|
381 |
info="Your API key"
|
382 |
)
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
gradio[mcp]==5.32.0
|
2 |
-
minionx>=0.1.
|
3 |
python-dotenv>=1.0.0
|
4 |
mcp>=1.0.0
|
|
|
1 |
gradio[mcp]==5.32.0
|
2 |
+
minionx>=0.1.3
|
3 |
python-dotenv>=1.0.0
|
4 |
mcp>=1.0.0
|