Comments (9)
When testing with aicommits I noticed that I was over my quota (error 429).
I added payments and switched to paid account over at OpenAI.
aicommits is now able to make requests to OpenAI and generate commit messages.
PHPStorm with AICommits still generate the 'Commit message could not be generated'
from ai-commits-intellij-plugin.
@Blarc that worked! Note that the last forward slash /
in the url is important. Without it, I got the same error OpenAI configuration is not valid (404)
.
Requesting a commit message then delivered the error that the input length was exceeded.
By just selecting a few changed files, I did get a working message.
Thanks for helping me out!
from ai-commits-intellij-plugin.
@pauledenburg Sorry for responding so late. Have you maybe managed to resolve the problem with PHPStorm?
Regarding the "no other information displayed", there was no notification? I call the generate commit message in a try catch block:
runBlocking(Dispatchers.Main) {
try {
val generatedCommitMessage = openAIService.generateCommitMessage(prompt, 1)
commitMessage.setCommitMessage(generatedCommitMessage)
AppSettings.instance.recordHit()
} catch (e: Exception) {
commitMessage.setCommitMessage(message("action.error"))
sendNotification(Notification.unsuccessfulRequest(e.message ?: message("action.unknown-error")))
}
}
And would expect that an error notification would pop up.
from ai-commits-intellij-plugin.
No problem @Blarc
The issue still exists. I have attached a screen recording where I hit Cmd+K to commit changed files and then click the button to have a commit-message generated.
I do not see any messages popup.
I have version 1.2.0 of the plugin installed.
2023-06-17_12-02-32.mp4
from ai-commits-intellij-plugin.
@pauledenburg Which version of PhpStorm are you using? Could you try to verify the token by clicking the button Verify
in settings?
I will release have released new version 1.2.1 that will writes the error message as the commit message when exception occurs. You can install it manually by following the steps in README.md or wait for JetBrains to approve the new release. Hopefully this will make it clear what's going on.
from ai-commits-intellij-plugin.
@Blarc I'm using PHPStorm version 2023.1.2 Build #PS-231.9011.38, built on May 16, 2023
I installed your new version via the zip-file and now I do get additional information:
This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?
I tried changing the configuration for the plugin by setting the OpenAI Host
to https://api.openai.com/v1/completions
as per the error message, but that did not change the error.
So I guess I should not use Ada
as model? It was the default selected during installation.
from ai-commits-intellij-plugin.
@pauledenburg Can you try these settings?
Default model should be gpt-3.5-turbo
. I have no idea why it was ada
for you. Also mind the OpenAI host
, my url does not contain v1
.
from ai-commits-intellij-plugin.
@Blarc I updated the settings conform your printscreen.
But now it won't validate when I click the 'Verify' button.
This is what I get when I want to commit.
from ai-commits-intellij-plugin.
@pauledenburg I'm sorry, the url https://api.openai.com/v1/
is correct. It seems it has changed over time and my settings weren't updated. Does it maybe work with this url and gpt-3.5-turbo
model?
from ai-commits-intellij-plugin.
Related Issues (20)
- Share Template Prompt:Standardized HOT 1
- Support More Model? HOT 2
- Open AI Configuration is not valid (Unknown) HOT 3
- Unable to see additional models HOT 3
- Fails to build HOT 2
- option to set custom timeout HOT 1
- Diff "before" and "after" is swapped in "Edit Prompt" settings window HOT 3
- Not compatible with the version of your running IDE (PhpStorm 2022.2.3) HOT 2
- Add cfg for OpenAi @Azure - deployment HOT 4
- Add {branch} variable for prompt customisation HOT 4
- Exclusion list
- why i couldn't use this plugin in Pycharm? HOT 9
- Models other than gpt-3.6 turbo do not work HOT 1
- Access Token Support HOT 2
- Advanced Configuration for Better Standardized Outputs through Simulated Interactions HOT 1
- Is it possible to make the proxy go to the one set by jetbrian?
- Hello, can you advise on this issue HOT 1
- Customize number of lines of context in diff HOT 1
- "Rate Limit reached" on valid OpenAI account HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-commits-intellij-plugin.