Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Feb 17, 2025
1 parent 2735ba4 commit 4856397
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kimoi/chat.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package kimoi AI 匹配 kimoi 词库
package kimoi

import (
Expand All @@ -13,11 +14,15 @@ const key = "暻撈莬穔僿貶稙棯悟澸滰蓱咜唕母屬石褤汴儱榅璕

const api = "https://ninex.azurewebsites.net/api/chat?code="

// Response 回复结构
type Response struct {
Reply string `json:"reply"`
// Reply 文本
Reply string `json:"reply"`
// Confidence 置信度, 建议不要使用 < 0.5 或 > 0.95 的结果
Confidence float64 `json:"confidence"`
}

// Chat 用户对 AI 说一句话
func Chat(msg string) (r Response, err error) {
resp, err := http.Post(
api+base64.URLEncoding.EncodeToString(base14.DecodeFromString(key)),
Expand Down

0 comments on commit 4856397

Please sign in to comment.