- Added Server Configuration settings page (backend + frontend) - Added .env config download/import API - Runtime config updates via UI - Support for all 3 themes (default, air, berry) - i18n support (zh/en)
11 lines
202 B
Go
11 lines
202 B
Go
package coze
|
|
|
|
import "github.com/songquanpeng/one-api/relay/adaptor/coze/constant/event"
|
|
|
|
func event2StopReason(e *string) string {
|
|
if e == nil || *e == event.Message {
|
|
return ""
|
|
}
|
|
return "stop"
|
|
}
|