mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(proxy_cli): prints the location of the config file
This commit is contained in:
parent
4b0f8825f3
commit
098a86f678
5 changed files with 11 additions and 5 deletions
|
@ -36,10 +36,14 @@ def open_config():
|
|||
print(f"Failed to copy .template.secrets.toml: {e}")
|
||||
|
||||
# Open the .env file in the default editor
|
||||
if os.name == 'nt': # For Windows
|
||||
os.startfile(user_config_path)
|
||||
elif os.name == 'posix': # For MacOS, Linux, and anything using Bash
|
||||
subprocess.call(('open', '-t', user_config_path))
|
||||
try:
|
||||
if os.name == 'nt': # For Windows
|
||||
os.startfile(user_config_path)
|
||||
elif os.name == 'posix': # For MacOS, Linux, and anything using Bash
|
||||
subprocess.call(('open', '-t', user_config_path))
|
||||
except:
|
||||
pass
|
||||
print(f"LiteLLM: Proxy Server Config - {user_config_path}")
|
||||
|
||||
def is_port_in_use(port):
|
||||
import socket
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue