mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2026-04-22 15:37:19 +08:00
docs: 修复一些GPT的拼写错误 (#194)
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ import (
|
||||
type Configuration struct {
|
||||
// 日志级别,info或者debug
|
||||
LogLevel string `yaml:"log_level"`
|
||||
// gtp apikey
|
||||
// gpt apikey
|
||||
ApiKey string `yaml:"api_key"`
|
||||
// 请求的 URL 地址
|
||||
BaseURL string `yaml:"base_url"`
|
||||
|
||||
Vendored
+1
-1
@@ -16,7 +16,7 @@ func (s *UserService) GetAnswerID(userId, chattitle string) uint {
|
||||
return sessionContext.(uint)
|
||||
}
|
||||
|
||||
// ClearUserSessionContext 清空GTP上下文,接收文本中包含 SessionClearToken
|
||||
// ClearUserSessionContext 清空GPT上下文,接收文本中包含 SessionClearToken
|
||||
func (s *UserService) ClearAnswerID(userId, chattitle string) {
|
||||
s.cache.Delete(userId + "_" + chattitle)
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -2,7 +2,7 @@ package cache
|
||||
|
||||
import "github.com/patrickmn/go-cache"
|
||||
|
||||
// SetUserSessionContext 设置用户会话上下文文本,question用户提问内容,GTP回复内容
|
||||
// SetUserSessionContext 设置用户会话上下文文本,question用户提问内容,GPT回复内容
|
||||
func (s *UserService) SetUserSessionContext(userId string, content string) {
|
||||
s.cache.Set(userId+"_content", content, cache.DefaultExpiration)
|
||||
}
|
||||
@@ -16,7 +16,7 @@ func (s *UserService) GetUserSessionContext(userId string) string {
|
||||
return sessionContext.(string)
|
||||
}
|
||||
|
||||
// ClearUserSessionContext 清空GTP上下文,接收文本中包含 SessionClearToken
|
||||
// ClearUserSessionContext 清空GPT上下文,接收文本中包含 SessionClearToken
|
||||
func (s *UserService) ClearUserSessionContext(userId string) {
|
||||
s.cache.Delete(userId + "_content")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user