Refactor: deal with unused code
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package models
|
||||
|
||||
import "regexp"
|
||||
|
||||
const (
|
||||
LoadedMark = "(loaded) "
|
||||
ToolRespMultyType = "multimodel_content"
|
||||
@@ -13,3 +15,17 @@ const (
|
||||
APITypeChat APIType = iota
|
||||
APITypeCompletion
|
||||
)
|
||||
|
||||
var (
|
||||
ToolCallRE = regexp.MustCompile(`__tool_call__\s*([\s\S]*?)__tool_call__`)
|
||||
QuotesRE = regexp.MustCompile(`(".*?")`)
|
||||
StarRE = regexp.MustCompile(`(\*.*?\*)`)
|
||||
ThinkRE = regexp.MustCompile(`(?s)<think>.*?</think>`)
|
||||
CodeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`)
|
||||
SingleBacktickRE = regexp.MustCompile(`\x60([^\x60]*)\x60`)
|
||||
RoleRE = regexp.MustCompile(`^(\w+):`)
|
||||
)
|
||||
|
||||
var (
|
||||
SysLabels = []string{"assistant"}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user