We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/v1/files
1 parent 6d3a6ad commit f40152cCopy full SHA for f40152c
src/backend/mod.rs
@@ -7,6 +7,13 @@ use piper::audio_speech_handler;
7
pub(crate) async fn handle_llama_request(req: Request<Body>) -> Response<Body> {
8
match req.uri().path() {
9
"/v1/audio/speech" => audio_speech_handler(req).await,
10
- _ => error::invalid_endpoint(req.uri().path()),
+ "/v1/files" => piper::files_handler(req).await,
11
+ path => {
12
+ if path.starts_with("/v1/files/") {
13
+ piper::files_handler(req).await
14
+ } else {
15
+ error::invalid_endpoint(path)
16
+ }
17
18
}
19
0 commit comments