-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Suggestions #5
Comments
I agree. I think the best example is like
I don't have enough experience regarding OOP in elisp, but I am sure this is helpful. I would need to take some times to learn it. 😅
What's your suggestion to this? I use
I think it's great to organize this way, so I can find the API I need depending on the type of it. 🤔
👍 |
|
Let me know if you have more thoughts on this!
Sounds good to me! ;)
Oh, okay. So we can just use
Yeah, I understand one huge file's benefits, but I still decided to do it this way. Let's see what happens next!? If each file becomes smaller after refactoring, and does not fit the "multi-file" structure, we can always switch back to one huge file. ;) |
I've made an adjustment in #7 and exposed all parameters! Let me know if you have more suggestions! :D |
I have some suggestions for the generic API package. They are a bit drastic and depart from how this package is organized, but here it goes.
defcustom
s. The purpose of a generic API module is to expose all the functionality through request interfaces and some generic submit function.openai-key
should not be defcustom. Many users commit their custom file and they could accidentally commit their tokens.For inspiration, see https://github.com/emacs-lsp/lsp-mode/blob/master/lsp-protocol.el
Since the openai API is small, things can be hand-written and not generated with complicated macros, unlike LSP which has hundreds of interfaces.
After we discuss this, I'll be happy to start working on it and provide some pull requests.
The text was updated successfully, but these errors were encountered: