Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change deployment > model in CLI #69

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class bcolors:


"""
To add a new deployment, add a new DeploymentName enum and a new entry in the DEPLOYMENTS dictionary containing the secrets required for the deployment.
If the deployment requires a custom implementation, add a new key "custom_implementation" with the function that will be called to set up the deployment.
To add a new model, create a new DeploymentName enum and a new entry in the DEPLOYMENTS dictionary containing the secrets required for the model deployment.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we default to calling it model deployment? It might be confusing to refer to this by model or by deployment separately

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

If the model requires a custom implementation, add a new key "custom_implementation" with the function that will be called to set up the model deployment.
"""


Expand Down Expand Up @@ -134,10 +134,10 @@ def write_env_file(secrets):


def select_deployments_prompt(_):
print_styled("🚀 Let's set up your deployments.", bcolors.MAGENTA)
print_styled("🚀 Let's set up your model.", bcolors.MAGENTA)

deployments = inquirer.checkbox(
"Select the deployments you want to set up",
"Select the chat model deployment that will power your application and follow the setup instructions.",
choices=[deployment.value for deployment in DeploymentName],
default=["Cohere Platform"],
validate=lambda _, x: len(x) > 0,
Expand Down