forked from phoenix/litellm-mirror
fix(test_proxy_server.py): fix import
This commit is contained in:
parent
263d20cdd0
commit
c7644915f9
1 changed files with 3 additions and 2 deletions
|
@ -280,7 +280,7 @@ def test_chat_completion_optional_params(client_no_auth):
|
||||||
# test_chat_completion_optional_params()
|
# test_chat_completion_optional_params()
|
||||||
|
|
||||||
# Test Reading config.yaml file
|
# Test Reading config.yaml file
|
||||||
from litellm.proxy.proxy_server import load_router_config
|
from litellm.proxy.proxy_server import ProxyConfig
|
||||||
|
|
||||||
|
|
||||||
def test_load_router_config():
|
def test_load_router_config():
|
||||||
|
@ -288,7 +288,8 @@ def test_load_router_config():
|
||||||
print("testing reading config")
|
print("testing reading config")
|
||||||
# this is a basic config.yaml with only a model
|
# this is a basic config.yaml with only a model
|
||||||
filepath = os.path.dirname(os.path.abspath(__file__))
|
filepath = os.path.dirname(os.path.abspath(__file__))
|
||||||
result = load_router_config(
|
proxy_config = ProxyConfig()
|
||||||
|
result = proxy_config.load_config(
|
||||||
router=None,
|
router=None,
|
||||||
config_file_path=f"{filepath}/example_config_yaml/simple_config.yaml",
|
config_file_path=f"{filepath}/example_config_yaml/simple_config.yaml",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue