Comments (8)
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.
from cleverbird.
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.
@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.
@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.
looks like openAI is also struggling to get function calling streamed:
Limitations
Support for streaming output (including Messages and Run Steps).
from cleverbird.
from the latest GPT4 Turbo
from cleverbird.
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)
- How do I know when the stream task is completed? HOT 3
- Other properties for Document HOT 2
- Functions HOT 2
- ADA-2 floating point precession HOT 1
- function calling "array" issue HOT 2
- Index out of range in getPairs(in:) HOT 2
- How to customize API BaseURL? HOT 7
- Response status code was unacceptable: 404 HOT 5
- Demo SwiftUI Chat app HOT 1
- Support Azure openai HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cleverbird.