(fix) proxy raise exception when config passed in

This commit is contained in:
ishaan-jaff 2023-11-10 16:28:34 -08:00
parent 29eac53d76
commit 78e1ed9575
2 changed files with 2 additions and 2 deletions

View file

@ -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('--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('--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('--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('--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('--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`') @click.option('--telemetry', default=True, type=bool, help='Helps us know if people are using this feature. Turn this off by doing `--telemetry False`')

View file

@ -207,7 +207,7 @@ def load_router_config(router: Optional[litellm.Router], config_file_path: str):
else: else:
pass pass
except Exception as e: except Exception as e:
print_verbose(f"Exception while reading Config: {e}") raise Exception(f"Exception while reading Config: {e}")
pass pass