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

feat: support cortex configs and engines commands #782

Merged
merged 6 commits into from
Jun 26, 2024

Conversation

louis-jan
Copy link
Contributor

@louis-jan louis-jan commented Jun 26, 2024

Describe Your Changes

  • This PR is to add new Cortex commands
// Get all configs
cortex configs list

// Get a config
cortex configs get openai

// Set a config value
cortex configs set -k apiKey -v 'xx-yy' -g openai
// Get all available engines
cortex engines list

// Get an engine
cortex engines get openai
Screenshot 2024-06-26 at 17 49 54 Screenshot 2024-06-26 at 17 50 09 Screenshot 2024-06-26 at 20 58 16 Screenshot 2024-06-26 at 17 47 32 Screenshot 2024-06-26 at 17 47 50 Screenshot 2024-06-26 at 17 48 02 Screenshot 2024-06-26 at 17 48 54 Screenshot 2024-06-26 at 17 48 59

API

Screenshot 2024-06-26 at 20 43 36 Screenshot 2024-06-26 at 20 43 41 Screenshot 2024-06-26 at 20 51 15 Screenshot 2024-06-26 at 20 58 45 Screenshot 2024-06-26 at 21 31 44

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@louis-jan louis-jan force-pushed the feat/support-cortex-configs-and-engines-commands branch 2 times, most recently from d6bf908 to 99f5d96 Compare June 26, 2024 10:45
@louis-jan louis-jan force-pushed the feat/support-cortex-configs-and-engines-commands branch 2 times, most recently from c6ce3b8 to 58cb7e6 Compare June 26, 2024 10:50
@louis-jan louis-jan force-pushed the feat/support-cortex-configs-and-engines-commands branch from 58cb7e6 to 34a4888 Compare June 26, 2024 10:55
@louis-jan
Copy link
Contributor Author

Since this PR, all APIs available at /v1

Also printed out Playground URL

@louis-jan louis-jan merged commit 7e4e1b8 into dev Jun 26, 2024
1 check passed
@louis-jan louis-jan deleted the feat/support-cortex-configs-and-engines-commands branch June 26, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants