Git Product home page Git Product logo

Comments (6)

Issues-translate-bot avatar Issues-translate-bot commented on August 17, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: automatic retry mechanism

Automatic retry mechanism: automatically retry when request fails
The author would like to ask, under what circumstances does it automatically retry? Can I add a configuration parameter to automatically retry when some error codes are customized? For example, when configuring 429 and multiple keys, if the frequency of one key 429 exceeds, it will automatically retry to call other keys

from openai-forward.

gougui avatar gougui commented on August 17, 2024

我自己魔改了下,好像重试还是用的原来的key,导致重试一样失败

from openai-forward.

Issues-translate-bot avatar Issues-translate-bot commented on August 17, 2024

Bot detected the issue body's language is not English, translate it automatically.


I made some magic changes myself, and it seems that I still use the original key when I try again, causing the retry to fail.

from openai-forward.

KenyonY avatar KenyonY commented on August 17, 2024

目前的自动重试机制是用于请求时网络、并发等因素导致的错误,而不是用于判断返回的结果是否有错误。

from openai-forward.

Issues-translate-bot avatar Issues-translate-bot commented on August 17, 2024

Bot detected the issue body's language is not English, translate it automatically.


The current automatic retry mechanism is used for errors caused by network, concurrency and other factors during the request, rather than for determining whether the returned results have errors.

from openai-forward.

KenyonY avatar KenyonY commented on August 17, 2024

对于你的需求可以参考这里的回答 #67 (comment) ,可以通过判断返回的状态码确定是否重新请求。
本项目不会额外开发这个需求。

from openai-forward.

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.