Skip to content

Commit

Permalink
Serve default models when optimized model is requested
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-elastic committed Jan 17, 2025
1 parent f5f8013 commit 4742325
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public void stop() {

private void handle(HttpExchange exchange) throws IOException {
String fileName = exchange.getRequestURI().getPath().substring(1);
// If this architecture is requested, serve the default model instead.
fileName = fileName.replace("_linux-x86_64", "");
String range = exchange.getRequestHeaders().getFirst("Range");
Integer rangeFrom = null;
Integer rangeTo = null;
Expand Down

0 comments on commit 4742325

Please sign in to comment.