Giter Club home page Giter Club logo

Comments (4)

LMCom avatar LMCom commented on June 12, 2024

I assume you are using GPT-4o which also requires an assistant v2. That's a very recent change to which this repository is not yet adjusted.
Try an earlier GPT version with an assistant v1. It should work.

from client.

prashantadevkota-bg avatar prashantadevkota-bg commented on June 12, 2024

If you want to see how the V2 API behaves, then you can use the below quick hack to support creating assistants, threads & messages. It will also allow you to read back the responses from the AI. It will even support using the latest Model, which is 'gpt-4o'.

All you need to do is apply the change in three files like shown in the image below. The error happens because the V2 response doesn't have a 'file_ids' array key in the attributes array (I haven't checked whether this is true for all use-cases, but the fix is generic enough that it can easily handle cases where the file_ids key is present), and we just assign an empty array if that is the case.

Please note that this is a hacky solution for people who are too impatient for this library to be fixed.

bug-fix-for-v2

from client.

udgithub avatar udgithub commented on June 12, 2024

can you estimate when you will have adapted this cool PHP library to Open AI assistants API v2?

from client.

gehrisandro avatar gehrisandro commented on June 12, 2024

I am currently working on the v2 implementation, but it is a lot to do.

Feel free to give it an extra boost github.com/sponsors/gehrisandro 😅

from client.

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.