|
@@ -176,7 +176,7 @@ class ChatGPTAPI:
|
|
|
cors.add(self.app.router.add_post("/chat/completions", self.handle_post_chat_completions), {"*": cors_options})
|
|
|
cors.add(self.app.router.add_post("/v1/chat/completions", self.handle_post_chat_completions), {"*": cors_options})
|
|
|
|
|
|
- self.static_dir = Path(__file__).parent.parent.parent/"tinychat/examples/tinychat"
|
|
|
+ self.static_dir = Path(__file__).parent.parent/"tinychat"
|
|
|
self.app.router.add_get("/", self.handle_root)
|
|
|
self.app.router.add_static("/", self.static_dir, name="static")
|
|
|
|