Code Monkey home page Code Monkey logo

Comments (8)

btfranklin avatar btfranklin commented on August 12, 2024

At present, function calling is not supported in streamed mode. (This is mentioned in the README.) I'd like to add support for this ability in the future, though.

from cleverbird.

alelordelo avatar alelordelo commented on August 12, 2024

from cleverbird.

btfranklin avatar btfranklin commented on August 12, 2024

Hey there. I have now had a chance to properly investigate this, and it appears to me from my API tests that there is no support on OpenAI's side for function calling in streaming mode. It simply ignores the defined functions as if they didn't exist, and reverts to "I'm just an AI and can't do that" messages.

So what this means, unfortunately, is that there's just no way to do it at the moment with the current API.

I'm going to close this out, but if this capability is introduced in the future by OpenAI, I'd be very happy to add support.

from cleverbird.

alelordelo avatar alelordelo commented on August 12, 2024

@btfranklin , I almost got it working using this package. I can stream the chat and print the function arguments, but still struggling to get the function arguments passed to the view... Your package is much cleaner, so I am trying to get this working on CleverBird : )
MacPaw/OpenAI#96 (comment)

from cleverbird.

btfranklin avatar btfranklin commented on August 12, 2024

@alelordelo That sounds really cool. If you would like open a PR against CleverBird with your implementation once you get it working, I would be happy to consider it for integration into the package. I'll go ahead and re-open this ticket since you're actively looking into this. Please do follow up with how it goes!

from cleverbird.

alelordelo avatar alelordelo commented on August 12, 2024

looks like openAI is also struggling to get function calling streamed:

Limitations
Support for streaming output (including Messages and Run Steps).

from cleverbird.

alelordelo avatar alelordelo commented on August 12, 2024

from the latest GPT4 Turbo

from cleverbird.

btfranklin avatar btfranklin commented on August 12, 2024

I'm going to go ahead and close this, since a long time has passed and I haven't heard more.

from cleverbird.

Related Issues (11)

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.