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

Write Prompt Submission Client for Server Mode #6

Closed
RagingTiger opened this issue Jan 8, 2023 · 12 comments
Closed

Write Prompt Submission Client for Server Mode #6

RagingTiger opened this issue Jan 8, 2023 · 12 comments
Assignees
Labels
enhancement New feature or request

Comments

@RagingTiger
Copy link
Owner

Would be good to have a CLI client to submit prompts to the cligpt server when in server mode

@RagingTiger RagingTiger added the enhancement New feature or request label Jan 8, 2023
@RagingTiger RagingTiger self-assigned this Jan 8, 2023
@RagingTiger
Copy link
Owner Author

Idea: implement client mode by adding cli arg for --client and also by checking if the binary name == 'client' || 'prompt' or something more unique (i.e. cligptclient, cligptprompt, promptgpt, etc ...). This will save on the complexity of compiling multiple binaries ...

@RagingTiger
Copy link
Owner Author

Better yet, create a separate misc dir for prompt code

@RagingTiger
Copy link
Owner Author

@RagingTiger
Copy link
Owner Author

@RagingTiger
Copy link
Owner Author

@RagingTiger
Copy link
Owner Author

RagingTiger commented Jan 10, 2023

Additional Go Dev References (because it's good stuff and why not?):
+https://go.dev/tour/list

@RagingTiger
Copy link
Owner Author

Implemented with 8f1861e

@RagingTiger
Copy link
Owner Author

Would be good to have CLI that can handle edit command (CTRL-A, CTRL-K, etc ...).
References:

@RagingTiger RagingTiger reopened this Jan 10, 2023
@RagingTiger
Copy link
Owner Author

Alternate Prompt Libraries:

@RagingTiger
Copy link
Owner Author

A better solution would be to have the client mode be the default when no config file can be found ... also it can be manually toggled with the --client flag. That way the default is just a beautiful prompt using something like bubbletea, that attempts to find a config file, and on failure defaults to client mode and will send requests to a server at some address:port.

If it does find a config file it can just send requests directly to OpenAI's ChatGPT API ...

@RagingTiger
Copy link
Owner Author

Closing now and continuing in new issue: #10

RagingTiger pushed a commit that referenced this issue Jan 20, 2023
improve openai completions api access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant