docs: 修复一些GPT的拼写错误 (#194)

This commit is contained in:
Finly
2023-04-11 10:34:53 +08:00
committed by GitHub
parent 0adbece285
commit dff744fa1d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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"`
+1 -1
View File
@@ -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)
}
+2 -2
View File
@@ -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")
}