Comments (10)
Can we have a separate documentation for serverless functions too?
from ai.
@Sahas can you
- Check how long your function takes to run
- Check the free tier how long serveless funcitons run (normally 10s)
- Check paid tier how long serveless functions run (normally 60s)
from ai.
@peterokwara I've tried using calling same function with and without edge.
- With edge, the stream started in 2s & stream ended in 20s.
- With serverless, I'm not getting any response as the function invocation is getting timedout
from ai.
I'm guessing this is because of #97 ("Stream never closes with LangChainStream using postman"). Can you try one of the workarounds in that issue and see if that solves this problem? (You could also check in your dev console if the request is stuck open, even after new messages stop arriving).
from ai.
Will check, but any idea why it impacts only serverless functions and not edge function?
from ai.
@jaredpalmer / @shuding can you look into this issue please
from ai.
any idea why it impacts only serverless functions and not edge function?
No, but I'm less familiar with the edge stuff. I thought perhaps because of the different limits and runtimes, the above issue could possibly express itself this way.
from ai.
I think there are two issues here:
- Streaming langchain is broken for certain models (see #205)
- You are encountering a timeout. On the hobby tier of Vercel, serverless functions timeout after only 10 seconds.
closing as a duplicate, please reply back if you think I missed something.
from ai.
- Why is it breaking only for serverless functions and not edge functions?
- I'm using vercel pro account, so the timeout is 60s.
from ai.
I've used this code
But then i removed
export const runtime = "edge";
i think this means I am not using edge
And I don't get the same issues.
I am using vercel pro. I am using gpt-3.5-turbo-0613
from ai.
Related Issues (20)
- Error: failed to pipe response (SyntaxError: Unexpected end of JSON input) for experimental_onToolCall
- experimental_useAssistant has been blocked by CORS policy HOT 2
- failed to open json file
- Observability with OpenTelemetry
- OpenAI provider Text completion "No overload matches this call" HOT 1
- LLamaIndex.ts support HOT 2
- Requesting with useCompletion, initially. (or via script) HOT 1
- Decoding issues with experimental_StreamData HOT 3
- Mistral: `Argument of type 'AsyncGenerator<ChatCompletionResponseChunk, void, unknown>' is not assignable to parameter of type 'Response | AsyncIterableOpenAIStreamReturnTypes'.`
- Unicode character question submit fired twice HOT 1
- ChatRequestOptions for handleSubmit does documentation and code are different HOT 1
- useChat append message limit HOT 2
- StreamingTextResponse(stream) doesn't stream with AZURE OPEN AI HOT 4
- Update Documentation for Open AI Tool Calling
- Preview is returning 404: NOT_FOUND HOT 1
- OpenAI, experimental_onToolCall - tool call messages are not streaming in realtime HOT 1
- message annotations are repeated HOT 3
- Limit number of words streaming at a time - useChat HOT 1
- Perhaps I'm missing something? `experimental_StreamData`
- Serverless stream exception HOT 1
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 ai.