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

AI features #158

Open
9 of 11 tasks
curlpipe opened this issue Sep 25, 2024 · 11 comments
Open
9 of 11 tasks

AI features #158

curlpipe opened this issue Sep 25, 2024 · 11 comments
Labels
enhancement New feature or request

Comments

@curlpipe
Copy link
Owner

curlpipe commented Sep 25, 2024

Have a plug-in that does the following:

  • Is able to get the context of the file the user is in
  • Prompts the user for what they'd like to do
  • Use the above to send information to an API
    • Google Gemini
    • OpenAI ChatGPT
    • Anthropic Claude
  • Processes the result and inserts it into the code file
  • API key is assigned during set-up assistant
  • Thorough testing
  • AI prompt
  • AI sidebar
@curlpipe curlpipe added the enhancement New feature or request label Sep 25, 2024
@plyght
Copy link

plyght commented Nov 19, 2024

@curlpipe Could we also get OpenAI API or Claude API?

@curlpipe
Copy link
Owner Author

@curlpipe Could we also get OpenAI API or Claude API?

That can be arranged 👍

@curlpipe
Copy link
Owner Author

@plyght Working on this at the moment, I don't have an API key for ChatGPT or Claude as they are quite expensive, which makes it hard for me to test how they work. Gemini has a free plan (it is rate limited, but these are generous) and seems to be working OK so far.

@plyght
Copy link

plyght commented Dec 17, 2024

@curlpipe I have both; let me know when you release it and i'll be happy to test. I could also test now if needed!

@curlpipe
Copy link
Owner Author

@plyght Great, I will try my best to write in ChatGPT and Claude support, hopefully they work first time 🙏

@plyght
Copy link

plyght commented Dec 22, 2024

@curlpipe Has this been implemented into a release version yet? - Just following up.

@curlpipe
Copy link
Owner Author

not yet - I'll let you know when it is released 👍

@curlpipe
Copy link
Owner Author

@plyght released with 0.7.6

Documentation can be found here: https://github.com/curlpipe/ox/wiki/Plugins#ai

Let me know if claude and chatgpt works (they probably won't, but hopefully they magically do)

I'll keep this issue open until claude and chatgpt are working like a charm 👍

@plyght
Copy link

plyght commented Dec 24, 2024

@curlpipe

From my testing, it seems that OpenAI/Claude integration doesn’t work as expected. I believe this might be due to the need for the user to specify which “provider” they are using.

Additionally (and this is just based on my personal experience and preferences, so feel free to take it or leave it), I’m not a big fan of using comments in the file as a way to prompt the AI. While it works, I find it a bit odd to use as it feels out of place. Perhaps there’s a way to implement a more UI/X friendly method? Just a thought!

@curlpipe
Copy link
Owner Author

curlpipe commented Dec 24, 2024

From my testing, it seems that OpenAI/Claude integration doesn’t work as expected. I believe this might be due to the need for the user to specify which “provider” they are using.

Did you manually add ai = { model = "chatgpt", key = "api key goes here" } below the load_plugin("ai.lua") in your config file? Or did you use the configuration assistant?

Are there any errors you can see?

I’m not a big fan of using comments in the file as a way to prompt the AI

I really value your feedback - so please feel free to voice more opinions if you have them.

I think you're right, it's not ideal. Maybe by default, I could have it ask the user at the bottom (like it would for searching/replacing/commands/opening a file).

The other option is to have like an AI menu, similar to how file tree works, which is what cursor does. That would take quite a bit of effort to do, but it would make more sense and be more familiar to use.

@plyght
Copy link

plyght commented Dec 24, 2024

I manually added ai = { model = "chatgpt", key = "my-api-key-here" } like so: -- Load Plug-Ins -- load_plugin("autoindent.lua") load_plugin("pairs.lua") load_plugin("quickcomment.lua") load_plugin("ai.lua") ai = { model = "gpt-4o", key = "my-api-key-here" }

here is a screenshot for more clarity:
image

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

2 participants