abhagsain / ai-cli

Get answers for CLI commands from ChatGPT right from your terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default model text-davinci-003 deprecated

deivid11 opened this issue · comments

Error: {"message":"The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations","type":"invalid_request_error","param":null,"code":"model_not_found"}

The new models should be added to the ai model menu.

I've tried a quick fix adding the gpt-3.5-turbo but not working.

Error: {"message":"This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?","type":"invalid_request_error","param":"model","code":null}

I think it needs a bigger refactor. @abhagsain tell me if you can make the compatibility fixes please, if not I could spend some time to fix it and to send you a pull request later. I really love this utility.

Well, the fastest solution I found was making a Custom GPT with a cute penguin logo xD, so you are welcome to use it. Here is the link for Chat GPT Plus users.
I've used the prompts used on this project, so it should behave similar. The generated commands work just for linux, i don't use windows, so if anyone want me to modify it to work also for windows, just ask me ;)
https://chat.openai.com/g/g-qdIxnXxnX-ai-cli-for-linux

Good work deivid11, but to your work requiring chatGptPlus
Sign up for ChatGPT Plus to chat with AI CLI for Linux

I've tried a quick fix adding the gpt-3.5-turbo but not working.

Error: {"message":"This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?","type":"invalid_request_error","param":"model","code":null}

I think it needs a bigger refactor. @abhagsain tell me if you can make the compatibility fixes please, if not I could spend some time to fix it and to send you a pull request later. I really love this utility.

Hi, deivid11
I'll see if I can make a quick fix this weekend or early next week.

Good work deivid11, but to your work requiring chatGptPlus Sign up for ChatGPT Plus to chat with AI CLI for Linux

Ohh that's ture, GPTs are only available for ChatGTP plus users

If someone is looking for an alternative, take a look to https://githubnext.com/projects/copilot-cli/, I've not already tested but I'm planning to.

Hi, @deivid11
Sorry, Didn't get the time. I'm busy with some other work. Let me know if you want to pick this up.
Thank you

/bounty $50

💎 $50 bounty • Anurag Bhagsain

Steps to solve:

  1. Start working: Comment /attempt #52 with your implementation plan
  2. Submit work: Create a pull request including /claim #52 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to abhagsain/ai-cli!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @arindamlahiri Jan 20, 2024, 11:51:29 AM #53

OpenAI's older model is deprecated. The task is to refactor the code to support new models and update the package.
Thanks :)

💡 @arindamlahiri submitted a pull request that claims the bounty. You can visit your bounty board to reward.