Code Monkey home page Code Monkey logo

Comments (6)

ameer-clara avatar ameer-clara commented on August 12, 2024 2

Pro account timeout configurable upto 5 mins
https://vercel.com/guides/what-can-i-do-about-vercel-serverless-functions-timing-out

from openai-assistants-quickstart.

mshepard avatar mshepard commented on August 12, 2024

Instructing the Assistant to limit responses to ~200 tokens fixes the problem, but that’s a weak workaround.

Seems to be a timeout issue on the Run when executed through the production environment (Vercel). Still investigating.

from openai-assistants-quickstart.

Unlok-Simon avatar Unlok-Simon commented on August 12, 2024

I am also getting this when using Vercel. Also no issue when running locally. Very annoying..... Use case we are playing with won't work with limiting responses to 200 tokens.

from openai-assistants-quickstart.

Unlok-Simon avatar Unlok-Simon commented on August 12, 2024

Pro account timeout configurable upto 5 mins https://vercel.com/guides/what-can-i-do-about-vercel-serverless-functions-timing-out

This is it! I am currently only on Free plan while we play with ideas so I added:

export const maxDuration = 60; // 60 seconds maximum duration on free plan

to app/api/assistants/threads/[threadId]/messages/route.ts

Can't imagine a reponse needing more than 60 secs (esp. with the assistant using the 4o model!)

Thanks @ameer-clara for the direction. Appreciate it.

from openai-assistants-quickstart.

mshepard avatar mshepard commented on August 12, 2024

Ah ok. Thanks @ameer-clara ! Very much appreciated!

from openai-assistants-quickstart.

Related Issues (10)

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.