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

Adjust CLI to support variants of source (inputs) and ai provider #18

Closed
StefMa opened this issue May 14, 2024 · 0 comments · Fixed by #23
Closed

Adjust CLI to support variants of source (inputs) and ai provider #18

StefMa opened this issue May 14, 2024 · 0 comments · Fixed by #23

Comments

@StefMa
Copy link
Collaborator

StefMa commented May 14, 2024

Since we decided to get rid of support "only" github issues/pr but a variantiy of different sources we have to adjust the CLI to support that soo.

I imagine something like this:

summaraizer SOURCE ARGUMENT AI_PROVIDER --flags

SOURCE
This is a cobra command like github (suport right now), github_pr (#15), gitlab (#11 and #15), or reddit (#16).
Each of those needs an 👇

ARGUMENT
The argument is the argument for the SOURCE. The source needs to know from where it grabs the information.
Examples:
github -> ioki-mobility/summaraizer/15
github_pr -> ioki-mobility/summaraizer/17 (assumption that this is an PR)
gitlab -> (similar to github)
reddit -> r/sub_name/thread_name
...

AI_PROIVDER
The ai provider we support. This can be openai (#3 & #17), ollama (support right now), or mistral (#4).
Those don't need "ARGUMENTS" (but could).

--flags are used to change the "behaviour" of the SOURCE and AI_PROVIDER.
A typical example is the token. ai-token, gitlab-token, github-token...
Also the ai-model and stuff...

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 a pull request may close this issue.

1 participant