Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat(models-http-api): add rate limit support for completion and chat #3468
feat(models-http-api): add rate limit support for completion and chat #3468
Changes from 2 commits
dcba791
b6ec3a9
2abb6cf
eadfd66
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 37 in crates/http-api-bindings/src/chat/mod.rs
Codecov / codecov/patch
crates/http-api-bindings/src/chat/mod.rs#L37
Check warning on line 48 in crates/http-api-bindings/src/chat/mod.rs
Codecov / codecov/patch
crates/http-api-bindings/src/chat/mod.rs#L40-L48
Check warning on line 22 in crates/http-api-bindings/src/chat/rate_limit.rs
Codecov / codecov/patch
crates/http-api-bindings/src/chat/rate_limit.rs#L17-L22
Check warning on line 37 in crates/http-api-bindings/src/chat/rate_limit.rs
Codecov / codecov/patch
crates/http-api-bindings/src/chat/rate_limit.rs#L30-L37
Check warning on line 46 in crates/http-api-bindings/src/chat/rate_limit.rs
Codecov / codecov/patch
crates/http-api-bindings/src/chat/rate_limit.rs#L40-L46
Check warning on line 58 in crates/http-api-bindings/src/chat/rate_limit.rs
Codecov / codecov/patch
crates/http-api-bindings/src/chat/rate_limit.rs#L51-L58
Check warning on line 63 in crates/http-api-bindings/src/chat/rate_limit.rs
Codecov / codecov/patch
crates/http-api-bindings/src/chat/rate_limit.rs#L62-L63
Check warning on line 17 in crates/http-api-bindings/src/completion/llama.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/llama.rs#L17
Check warning on line 20 in crates/http-api-bindings/src/completion/llama.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/llama.rs#L20
Check warning on line 24 in crates/http-api-bindings/src/completion/llama.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/llama.rs#L24
Check warning on line 24 in crates/http-api-bindings/src/completion/mistral.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/mistral.rs#L24
Check warning on line 29 in crates/http-api-bindings/src/completion/mistral.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/mistral.rs#L29
Check warning on line 37 in crates/http-api-bindings/src/completion/mistral.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/mistral.rs#L37
Check warning on line 23 in crates/http-api-bindings/src/completion/mod.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/mod.rs#L16-L23
Check warning on line 47 in crates/http-api-bindings/src/completion/mod.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/mod.rs#L25-L47
Check warning on line 60 in crates/http-api-bindings/src/completion/mod.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/mod.rs#L54-L60
Check warning on line 28 in crates/http-api-bindings/src/completion/openai.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/openai.rs#L28
Check warning on line 32 in crates/http-api-bindings/src/completion/openai.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/openai.rs#L32
Check warning on line 38 in crates/http-api-bindings/src/completion/openai.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/openai.rs#L38
Check warning on line 17 in crates/http-api-bindings/src/completion/rate_limit.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/rate_limit.rs#L12-L17
Check warning on line 29 in crates/http-api-bindings/src/completion/rate_limit.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/rate_limit.rs#L22-L29
Check warning on line 34 in crates/http-api-bindings/src/completion/rate_limit.rs
Codecov / codecov/patch
crates/http-api-bindings/src/completion/rate_limit.rs#L33-L34
Check warning on line 59 in crates/ollama-api-bindings/src/completion.rs
Codecov / codecov/patch
crates/ollama-api-bindings/src/completion.rs#L59
Check warning on line 65 in crates/ollama-api-bindings/src/completion.rs
Codecov / codecov/patch
crates/ollama-api-bindings/src/completion.rs#L65