feat(network): centralize proxy settings and add MCP routing (NAN-315) (#6372)
* feat(network): share proxy settings across features and MCP (NAN-315) * fix(network): address shared proxy review regressions * test(network): align rebased OAuth fixtures with runtime admission * fix(webui): configure shared proxy without leaving connection drafts * feat(webui): add optional shared proxy authentication editor * fix(webui): align proxy save tests and loading skeleton
This commit is contained in:
1 parent
872a83340d
commit
084b6bb394
181 files changed
+3740
-807
No files matched your search
@@ -9,6 +9,7 @@ import pytest
|
||||
|
||||
from nanobot.agent.tools.image_generation import ImageGenerationTool, ImageGenerationToolConfig
|
||||
from nanobot.config.loader import set_config_path
|
||||
from nanobot.config.network import NetworkConfig
|
||||
from nanobot.config.schema import Config, ProviderConfig
|
||||
from nanobot.providers.image_generation import GeneratedImageResponse, image_gen_provider_configs
|
||||
|
||||
@@ -188,7 +189,8 @@ def test_image_generation_tool_passes_provider_proxy_to_client(
|
||||
provider="openai_codex",
|
||||
model="openai-codex/gpt-image-2",
|
||||
),
|
||||
provider_configs={"openai_codex": ProviderConfig(proxy=proxy)},
|
||||
provider_configs={"openai_codex": ProviderConfig(use_proxy=True)},
|
||||
network=NetworkConfig(proxy=proxy),
|
||||
)
|
||||
|
||||
client = tool._provider_client()
|
||||
|
||||
Reference in new issue
Block a user