I do a lot of stuff
marc-r2 / ai-commits-intellij-plugin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from blarc/ai-commits-intellij-plugin
CommitGPT for IntelliJ based IDEs/Android Studio.
License: MIT License
This project forked from blarc/ai-commits-intellij-plugin
CommitGPT for IntelliJ based IDEs/Android Studio.
License: MIT License
I encounter 'Prompt is too large'
The diff is too large for the OpenAI API. Try reducing the number of staged changes or write your own commit message.
In order to solve the issue, please add the maxTokens indicator to the plugin settings.
It will also be nice to have a model and temperature selection.
{
"model": "GPT-4o",
"temperature": 0.9,
"maxTokens": 2048
}
Hello, I registered on openAi at the beginning of its release and I registered on a good number of extensions or applications using GPT and I never had any problems but here, it does not work.
Thanks
Possible to have options regarding what CommitGPT puts in notifications?
At the moment it dumps the whole prompt message taking up loads of space, if it could be made collapsed/expandable that would suffice.
Description:
I encountered a JSON conversion exception in PhpStorm when using the CommitGPT plugin. This issue seems to occur during the verification of an OpenAI API token.
Environment
PhpStorm Version: 2023.2.2
CommitGPT Plugin Version: 0.7.1 Marc-R2
Operating System: Ubuntu 20.04.6 LTS x86_64
Steps to reproduce
1- Go to Settings > Tools > CommitGPT
2- Click on the link to generate an openai token
3- Generate the token and copy it
4- Paste it in the Openai Token input
5- Click on verify and I see "Openai token is not valid (unknown)"
6- I check my syslog with sysLog='tail -f -n200 /var/log/{messages,kernel,dmesg,syslog}'
Observed error log:
Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> access-control-allow-origin: *
Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> alt-svc: h3=":443"; ma=86400
Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> openai-processing-ms: 174
Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> openai-version: 2020-10-01
Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> strict-transport-security: max-age=15724800; includeSubDomains
Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> x-request-id: e93044abb6506e380268111b736a6855
Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: HttpClient: RESPONSE https://api.openai.com/v1/models failed with exception: io.ktor.serialization.JsonConvertException: Illegal input
When the diff is passed to the prompt, it includes the absolute paths.
Example:
/home/draget/projects/work/mycompany/repos/experiements/secret/mygreatapp/src/โฆ
It would be nice it it could be converted to a relative project path:
mygreatapp/src/โฆ
This would reduce the tokens used for the prompt, might increase privacy a tiny bit and lessens the project-irrelevant noise.
OpenAI token is reset afer change project or reload editor
add support to use another model provider like AzureOpenAI
I recommend testing your generated commit with commitlint, because it generates some formatting errors
It would be nice if we could be able to select which model to use (GPT-3.5, GPT-4-4k, GPT-4-32k).
Hi, thanks a lot for your work, I found the link to your plugin in a lib opencommit discussion.
I would have liked to know if it was possible to make the plugin compatible with Android Studio, that would be really great :) Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.