mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
12 lines
323 B
Go
12 lines
323 B
Go
package openai
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func InitRouter(r *gin.RouterGroup) {
|
|
// ChatGPT
|
|
r.POST("chatgpt", MakeChatCompletionRequest)
|
|
r.POST("chatgpt_record", StoreChatGPTRecord)
|
|
// Code Completion
|
|
r.GET("code_completion", CodeCompletion)
|
|
r.GET("code_completion/enabled", GetCodeCompletionEnabledStatus)
|
|
}
|