design: add design for completion#34
Merged
Merged
Conversation
This design introduces a server handler for completion.
samthanawalla
marked this pull request as ready for review
June 25, 2025 18:34
findleyr
self-requested a review
June 25, 2025 18:54
findleyr
reviewed
Jun 25, 2025
|
|
||
| - **Validate all completion inputs**: The CompleteRequest received by the handler may contain arbitrary data from the client. Before processing, thoroughly validate all fields. | ||
|
|
||
| - **Implement appropriate rate limiting**: Completion requests can be high-frequency, especially in interactive user experiences. Without rate limiting, a malicious client could potentially overload the server, leading to denial-of-service (DoS) attacks. Consider applying rate limits per client session, IP address, or API key, depending on your deployment model. This can be implemented within the CompletionHandler itself or via middleware (see [Middleware](#middleware)) that wraps the handler. |
Contributor
There was a problem hiding this comment.
I actually do think we should make it easier for users, by providing rate limiting facilities. But we can discuss.
samthanawalla
added a commit
to samthanawalla/go-sdk
that referenced
this pull request
Jun 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This design introduces a server handler for completion.
updates #12
Motivation and Context
Completion design missing.
How Has This Been Tested?
N/A
Breaking Changes
N/A
Types of changes
Checklist
Additional context
N/A