Skip to content

Commit

Permalink
Merge branch 'main' into beta147
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko authored Jun 15, 2024
2 parents ecda032 + a5d1b79 commit 4a550a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions applogic/tongyiqianwen.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (app *App) ChatHandlerTyqw(w http.ResponseWriter, r *http.Request) {
}
}
}

// TODO: msgid是空的开始第一句也要处理 插入
// 获取历史信息
if msg.ParentMessageID != "" {
userhistory, err := app.getHistory(msg.ConversationID, msg.ParentMessageID)
Expand All @@ -159,8 +159,6 @@ func (app *App) ChatHandlerTyqw(w http.ResponseWriter, r *http.Request) {
fmtf.Printf("Error getting system history: %v,promptstr[%v]\n", err, promptstr)
return
}

// 处理增强QA逻辑
if config.GetEnhancedQA(promptstr) {
systemHistory, err := prompt.GetMessagesExcludingSystem(promptstr)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,4 +480,4 @@ GetAIPromptkeyboardPath可以是自身地址,可以带有prompt参数

3. **Inklewriter**
- **项目主页**,[Ink on GitHub](https://github.com/inkle/ink).
- 它是一个允许用户创建交互式故事的网页平台。它设计了**ink**语言,它是一个开源项目,用于编写交互式叙述和游戏。
- 它是一个允许用户创建交互式故事的网页平台。它设计了**ink**语言,它是一个开源项目,用于编写交互式叙述和游戏。
6 changes: 6 additions & 0 deletions structs/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,12 @@ type PromptExit struct {
Keywords []string `yaml:"keywords"` // 匹配词列表
}

type YuanqiConf struct {

Check failure on line 487 in structs/struct.go

View workflow job for this annotation

GitHub Actions / Build on windows for amd64

YuanqiConf redeclared in this block

Check failure on line 487 in structs/struct.go

View workflow job for this annotation

GitHub Actions / Build on linux for amd64

YuanqiConf redeclared in this block
YuanqiAssistantID string `yaml:"yuanqiAssistantID"` // 助手ID
YuanqiToken string `yaml:"yuanqiToken"` // Token
YuanqiName string `yaml:"yuanqiName"` // 名字
}

type MetaEvent struct {
PostType string `json:"post_type"`
MetaEventType string `json:"meta_event_type"`
Expand Down

0 comments on commit 4a550a4

Please sign in to comment.