dmytrobaida / GPTCommitVSCode

VS Code extension which helps to generate AI commit messages using ChatGPT
https://marketplace.visualstudio.com/items?itemName=DmytroBaida.gpt-commit
MIT License
34 stars 25 forks source link

Add third party service support #8

Closed chenweiyi closed 11 months ago

chenweiyi commented 11 months ago

Very nice project, thank you.

In my work, I need to use a custom service, so I submitted this PR.

I add two options, gptcommit.thirdParty.serviceUrl support third-party service, gptcommit.output.generateMsgToFile support generate temporary file to store messages.

I add one commands, gptcommit.registerThirdPartyServiceUrl support add service url conveniently.

I alse add output channel GPT Commit to conveniently view the output.

dmytrobaida commented 11 months ago

Thanks. It's very nice feature. Will add it in new version

dmytrobaida commented 11 months ago

Did some investigation about this feature and I want to implement universal mechanism to support different kinds of third party services. For example https://huggingface.co/microsoft/DialoGPT-large?text=Hey+my+name+is+Clara%21+How+are+you%3F or so. The problem is that different services have different api requests. Now I'm thinking how better to implement this

chenweiyi commented 11 months ago

To the best of my knowledge, it is difficult to achieve a universal service. Different services have different configuration requirements, and the requests in terms of content and method may also vary. I believe that currently, we can support commonly used methods such as ChatGPT and BARD. These are the suggestions I can think of within my current scope of understanding. If you have good ideas and need help implementing them, I can assist by providing pr😊.