fix: server should still support prompt only use case

improve-workflow
Meng Zhang 2023-06-10 00:39:32 -07:00
parent eecdde0269
commit 6718afbf67
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ pub async fn completion(
// If there's no prompt template, just use prefix.
prefix
}
} else if let Some(prompt) = request.prompt {
prompt
} else {
return Err(StatusCode::BAD_REQUEST);
};