From 4dc362487a051c16cb9b5e7766c4aea414092df8 Mon Sep 17 00:00:00 2001 From: weibaohui Date: Thu, 17 Oct 2024 12:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E3=80=81=E4=B8=8A=E4=BC=A0=E5=92=8C=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BB=A5=E5=8F=8AChatGPT=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3-=20=E6=B7=BB=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=B5=8F=E8=A7=88=E3=80=81=E4=B8=8A=E4=BC=A0=E5=92=8C?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E7=9A=84API=E6=8E=A5=E5=8F=A3=20-=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9EChatGPT=E7=9A=84POST=E5=92=8CSSE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20-=20=E4=BC=98=E5=8C=96API=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E7=9A=84=E7=BB=84=E7=BB=87=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index ff3defe..1cc27f1 100644 --- a/main.go +++ b/main.go @@ -84,9 +84,15 @@ func main() { api.GET("/doc/gvk/:api_version/:kind", doc.Doc) api.POST("/doc/detail", doc.Detail) + // chatgpt api.POST("/chat", chat.Chat) api.GET("/chat/sse", chat.Sse) + // pod 文件浏览上传下载 + api.GET("/file/list", pod.FileListHandler) + api.POST("/file/show", pod.ShowFileHandler) + api.POST("/file/save", pod.SaveFileHandler) + // k8s pod // http://127.0.0.1:3618/k8s/doc/gvk/stable.example.com%2Fv1/CronTab