GithubHelp home page GithubHelp logo

Comments (9)

pauledenburg avatar pauledenburg commented on May 13, 2024 1

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.

pauledenburg avatar pauledenburg commented on May 13, 2024 1

@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.

image

By just selecting a few changed files, I did get a working message.

image

Thanks for helping me out!

from ai-commits-intellij-plugin.

Blarc avatar Blarc commented on May 13, 2024

@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.

pauledenburg avatar pauledenburg commented on May 13, 2024

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.

Blarc avatar Blarc commented on May 13, 2024

@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.

pauledenburg avatar pauledenburg commented on May 13, 2024

@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?

image

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.

image

from ai-commits-intellij-plugin.

Blarc avatar Blarc commented on May 13, 2024

@pauledenburg Can you try these settings?
image

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.

pauledenburg avatar pauledenburg commented on May 13, 2024

@Blarc I updated the settings conform your printscreen.

But now it won't validate when I click the 'Verify' button.

image

This is what I get when I want to commit.

image

from ai-commits-intellij-plugin.

Blarc avatar Blarc commented on May 13, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.