Skip to content

Commit f906275

Browse files
server: enable token array inputs for OAI API (#15001)
1 parent a9f7541 commit f906275

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tools/server/server.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4249,9 +4249,6 @@ int main(int argc, char ** argv) {
42494249

42504250
// process prompt
42514251
std::vector<server_tokens> inputs;
4252-
if (oaicompat && !prompt.is_string()) {
4253-
throw std::runtime_error("prompt must be a string");
4254-
}
42554252

42564253
if (oaicompat && has_mtmd) {
42574254
// multimodal

0 commit comments

Comments
 (0)