mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-14 21:25:09 +08:00
refactor: remove legacy compatibility configuration and UI components
This commit is contained in:
@@ -35,8 +35,6 @@ type DeepSeekCaller interface {
|
||||
|
||||
type ConfigReader interface {
|
||||
ModelAliases() map[string]string
|
||||
CompatWideInputStrictOutput() bool
|
||||
CompatStripReferenceMarkers() bool
|
||||
ToolcallMode() string
|
||||
ToolcallEarlyEmitConfidence() string
|
||||
ResponsesStoreTTLSeconds() int
|
||||
@@ -56,13 +54,6 @@ type Deps struct {
|
||||
ChatHistory *chathistory.Store
|
||||
}
|
||||
|
||||
func CompatStripReferenceMarkers(store ConfigReader) bool {
|
||||
if store == nil {
|
||||
return true
|
||||
}
|
||||
return store.CompatStripReferenceMarkers()
|
||||
}
|
||||
|
||||
var WriteJSON = util.WriteJSON
|
||||
|
||||
var _ AuthResolver = (*auth.Resolver)(nil)
|
||||
|
||||
Reference in New Issue
Block a user