mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
(fix) proxy raise exception when config passed in
This commit is contained in:
parent
29eac53d76
commit
78e1ed9575
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ def is_port_in_use(port):
|
|||
@click.option('--request_timeout', default=600, type=int, help='Set timeout in seconds for completion calls')
|
||||
@click.option('--drop_params', is_flag=True, help='Drop any unmapped params')
|
||||
@click.option('--add_function_to_prompt', is_flag=True, help='If function passed but unsupported, pass it as prompt')
|
||||
@click.option('--config', '-c', help='Configure Litellm')
|
||||
@click.option('--config', '-c', default=None, help='Configure Litellm')
|
||||
@click.option('--file', '-f', help='Path to config file')
|
||||
@click.option('--max_budget', default=None, type=float, help='Set max budget for API calls - works for hosted models like OpenAI, TogetherAI, Anthropic, etc.`')
|
||||
@click.option('--telemetry', default=True, type=bool, help='Helps us know if people are using this feature. Turn this off by doing `--telemetry False`')
|
||||
|
|
|
@ -207,7 +207,7 @@ def load_router_config(router: Optional[litellm.Router], config_file_path: str):
|
|||
else:
|
||||
pass
|
||||
except Exception as e:
|
||||
print_verbose(f"Exception while reading Config: {e}")
|
||||
raise Exception(f"Exception while reading Config: {e}")
|
||||
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue