Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A ratelimited scheme #141

Open
Sixzero opened this issue Apr 23, 2024 · 0 comments
Open

A ratelimited scheme #141

Sixzero opened this issue Apr 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Sixzero
Copy link
Collaborator

Sixzero commented Apr 23, 2024

For most models there exists some kind of ratelimit, from free providers like Groq it is easier to reach.

Steps:
creation of first version of SlowSchema <: AbstractTracerSchema
creation of methods for initialize_tracer, finalize_tracer (it has some defaults, but you might to simply use it as a passthrough)
wrapping the GroqSchema to create FreeGroqOpenAISchema into the one above FreeGroqOpenAISchema = RateLimitSchema(GroqOpenAISchema, 30, Minute(1)) (So it is still callable like any other schema.

@svilupp svilupp added the enhancement New feature or request label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants