getgrit / gritql

GritQL is a query language for searching, linting, and modifying code.
https://docs.grit.io/
MIT License
3.17k stars 82 forks source link

openai migrate error Failed to download Gritcli from #576

Closed olebrussels closed 6 days ago

olebrussels commented 1 week ago

hello team, i am having an issue and i need your help because i dont find any solution to this problem. I am trying to use openai.ChatCompletion.create( to call openai api. but this is no longer supported in openai>1.0

I did pip install --upgrade openai and openai migrate in my python venv installed on an ubuntu 20.04 but i get an error message when running my "openai migrate"

Downloading Grit CLI from https://github.com/getgrit/gritql/releases/latest/download/marzano-x86_64-unknown-linux-gnu.tar.gz Error: Failed to download Grit CLI from https://github.com/getgrit/gritql/releases/latest/download/marzano-x86_64-unknown-linux-gnu.tar.gz

can somebody tell me a hint on how to solve this? thank you!

morgante commented 1 week ago

You can try installing the Grit CLI directly: https://docs.grit.io/cli/quickstart

Then just run grit apply openai.

morgante commented 6 days ago

Closing this since there's already an issue on the openai repo: https://github.com/openai/openai-python/issues/1838