-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api-server): Update NanotronClientRequest class and Nanotron…
…ServerResponse class - Removed unused imports and updated the imports for NanotronClientRequest and NanotronServerResponse classes in api-server.ts. - Added import for NanotronUrl in api-server.ts. - Updated the type definitions in type.ts to include NativeClientRequest and NativeServerResponse types. - Updated the bodyLimit default value in NanotronApiServer class to 1MiB. - Refactored the handleClientRequest_ method in NanotronApiServer class to use the new NativeClientRequest and NativeServerResponse types. - Updated the getRouteOption_ method in NanotronApiServer class to use the new NanotronUrl class. - Removed unused code and added error handling in the handleClientRequest_ method. - Updated the comments and log messages for better clarity and readability.
- Loading branch information
Showing
1 changed file
with
42 additions
and
84 deletions.
There are no files selected for viewing
This file contains 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