AICommitApp / community

Streamline your coding process with AI-powered commit suggestions.
https://aicommit.app
MIT License
15 stars 1 forks source link

关于自定义API域名不生效的咨询 #14

Closed cuimo4183 closed 6 months ago

cuimo4183 commented 6 months ago

Describe the bug: 你好 我使用API2D提供的API地址:https://oa.api2d.net,发现验证失败,弹出如下信息。 麻烦看看是哪边的问题,谢谢。 image

Steps to reproduce:

Expected behavior:

Additional context: 我在翻译类的应用使用API2D提供的信息,正常使用

rosuH commented 6 months ago

收到,我看看

rosuH commented 6 months ago

@cuimo4183 看问题,应该是这个 api 服务没有提供获取 model 的 api,导致调用错误。

插件在验证 token/api 是否有效时,是通过获取 model 的方式来校验的,本意是为了节省 token。似乎在你的场景不适用,我会在这两天修改下校验方式,到时候会发一个版本给你试用,看看是否有效。

cuimo4183 commented 6 months ago

@cuimo4183 看问题,应该是这个 api 服务没有提供获取 model 的 api,导致调用错误。

插件在验证 token/api 是否有效时,是通过获取 model 的方式来校验的,本意是为了节省 token。似乎在你的场景不适用,我会在这两天修改下校验方式,到时候会发一个版本给你试用,看看是否有效。

感谢大佬回复 API2D的API文档参考:https://api2d-doc.apifox.cn/ 看接口文档,是在请求中携带model参数的

rosuH commented 6 months ago

已经在 3.0.4 版本修复,插件市场审核中,预计 1~2 天可以更新。

cuimo4183 commented 6 months ago

已经在 3.0.4 版本修复,插件市场审核中,预计 1~2 天可以更新。

你好,我今天已升级至3.0.4确认可以兼容API2D,谢谢

另外:试用到期后如果需要购买,这个购买信息是绑定idea账号的吗。因为是用的教育账号,可能不会长时间稳定,是否有别的购买/激活方式

rosuH commented 6 months ago

@cuimo4183 目前这个插件有非常多的免费政策支持,其中包括学生/教师账号免费。如果你所使用的账号验证了学生/教师资格,那么是可以免费使用的。

插件必须绑定账号才能使用,这是 JB 市场的规则之一。如果你的教育账户到期,并且你的另外的账户不符合免费政策,那么就需要登录该账号并且购买 License。License 会和账号绑定。

下面是 AICommit 当前所支持的免费/优惠政策,对学生/教师、开源开发者有好~

Discounted and Complimentary Licenses (2024-04-30)

For students and teachers Free

Students and academic staff members are eligible to use all JetBrains tools free, upon verification of their university/college domain email or ISIC card.

Learn more...

For classroom assistance Free

Universities, colleges, schools, and non-commercial educational organizations are eligible for free licensing to install all JetBrains tools in classrooms and computer labs for educational purposes.

Learn more...

For former student license holders 40% Off

Student license holders can get a 40% Graduation discount, which can be used towards the purchase of a new personal subscription for any single JetBrains product or for the All Products pack. The same 40% Graduation discount is offered to students of coding bootcamps and training courses who have used free coupon codes during their training.

Learn more...

For Developer Recognition Program Free

Active Microsoft Most Valuable Professionals, ASPInsiders, Java Champions, Docker Captains, and Google Developers Experts are eligible to receive a free subscription to JetBrains All Products Pack upon verification of their profile.

Learn more...

For Open Source projects Free

Non-commercial open source projects can qualify for free licenses to all JetBrains tools if they meet the support program requirements.

Learn more...

For universities and educational organizations 50% Off

Universities and accredited educational institutions can take advantage of our 50% discount on commercial subscriptions for development of internal projects and applications. Please contact sales to request a quote.

Learn more...

For startups 50% Off

Private software development companies which have been in business for less than 5 years may qualify for a 50% discount for up to 10 commercial licenses on any JetBrains products.

Learn more...

For non-profit organizations 50% Off

Registered non-profit organizations can apply for a special discount ranging from 25% to 50% off commercial pricing, depending on their business model. Please contact sales to request a quote.

Learn more...