Fix server for openai package (#877)

* fix

* fixes for 9b
This commit is contained in:
Awni Hannun
2024-07-08 12:34:31 -07:00
committed by GitHub
parent 20e221f7f7
commit 68e88d42fb
2 changed files with 27 additions and 13 deletions

View File

@@ -173,6 +173,7 @@ class APIHandler(BaseHTTPRequestHandler):
endpoints = {
"/v1/completions": self.handle_text_completions,
"/v1/chat/completions": self.handle_chat_completions,
"/chat/completions": self.handle_chat_completions,
}
if self.path not in endpoints: