Code Monkey home page Code Monkey logo

Comments (5)

jezs00 avatar jezs00 commented on June 10, 2024

Annoying. Looks like dalle have updated the way their api works in a recent version of their python package. I'll see what I can do.

from pycasso.

jezs00 avatar jezs00 commented on June 10, 2024

Dalle have changed a bit in how to use their script with release 1.0 of their API script so it doesn't work even with removal of errors:

You tried to access openai.Image, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. 

Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`

A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742

We can hopefully fix this up with that migration guide

from pycasso.

jezs00 avatar jezs00 commented on June 10, 2024

Alright I've got this working locally with the latest version of openai. Try using bash <(curl https://raw.githubusercontent.com/jezs00/pycasso/main/setup.sh) to update pycasso and let us know how it goes.

from pycasso.

elkorrupto avatar elkorrupto commented on June 10, 2024

Oh my god, it´s working.
Thank you so much!
You are a genius :)
I was struggeling for weeks and you did it in one night...
Thanks a lot from Germany - now i can play with the image size and colors...

I love this project!
Cheers ,
Henning

from pycasso.

jezs00 avatar jezs00 commented on June 10, 2024

Ah. Ich lerne Deutsch. Es ist ein Problem, das schwer zu lösen ist, wann man hat Openai API noch nicht benutzt. Es ist leichter wann man hat Erfahrung in dieser Code. Sie waren nur unglücklich mit dem erste von dieser Problem. Viel glück.

Ich werde dieses Problem schließen.

Closing problem as solved

from pycasso.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.