mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix - update migration script to ensure api_key in script
This commit is contained in:
parent
01d2681922
commit
d419da974a
1 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,9 @@ def migrate_models(config_file, proxy_base_url):
|
|||
new_value = input(f"Enter value for {value}: ")
|
||||
_in_memory_os_variables[value] = new_value
|
||||
litellm_params[param] = new_value
|
||||
if "api_key" not in litellm_params:
|
||||
new_value = input(f"Enter api key for {model_name}: ")
|
||||
litellm_params["api_key"] = new_value
|
||||
|
||||
print("\nlitellm_params: ", litellm_params)
|
||||
# Confirm before sending POST request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue