Skip to content

Commit

Permalink
fix: err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
deanxv committed Dec 3, 2024
1 parent a2f6b13 commit 289ec41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions common/constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package common

var Version = "v4.6.3" // this hard coding will be replaced automatically when building, no need to manually change
var Version = "v4.6.4" // this hard coding will be replaced automatically when building, no need to manually change

const (
RequestIdKey = "X-Request-Id"
Expand Down Expand Up @@ -59,8 +59,9 @@ var CozeOtherErrorMessages = []string{
}

var CozeUserDailyLimitErrorMessages = []string{
"Hi there! You've used up your free chat credits. To continue enjoying our service, please consider upgrading to our premium plan [Upgrade to Coze Premium to chat](https://www.coze.com/premium?connectID=10000028&botID=7376964308913422354)",
"Hi there! You've used up your free chat credits. To continue enjoying our service, please consider upgrading to our premium plan [Upgrade to Coze Premium to chat]",
"You have exceeded the daily limit for sending messages to the bot. Please try again later.",
"Hi there! You've used up your credits for today. To continue enjoying our service, please try again tomorrow or consider upgrading to our premium plan.",
}

var CozeCreatorDailyLimitErrorMessages = []string{
Expand Down
2 changes: 1 addition & 1 deletion common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func IsURL(s string) bool {
// Contains checks if a string is present in a slice of strings.
func SliceContains(slice []string, str string) bool {
for _, item := range slice {
if item == str {
if strings.Contains(str, item) {
return true
}
}
Expand Down

0 comments on commit 289ec41

Please sign in to comment.