mirror of
				https://github.com/linux-do/new-api.git
				synced 2025-11-04 13:23:42 +08:00 
			
		
		
		
	Merge pull request #53 from Calcium-Ion/fork/main
feat: 令牌聊天新增ChatGPT Web & Midjourney支持
This commit is contained in:
		@@ -76,6 +76,7 @@ func InitOptionMap() {
 | 
			
		||||
	common.OptionMap["GroupRatio"] = common.GroupRatio2JSONString()
 | 
			
		||||
	common.OptionMap["TopUpLink"] = common.TopUpLink
 | 
			
		||||
	common.OptionMap["ChatLink"] = common.ChatLink
 | 
			
		||||
	common.OptionMap["ChatLink2"] = common.ChatLink2
 | 
			
		||||
	common.OptionMap["QuotaPerUnit"] = strconv.FormatFloat(common.QuotaPerUnit, 'f', -1, 64)
 | 
			
		||||
	common.OptionMap["RetryTimes"] = strconv.Itoa(common.RetryTimes)
 | 
			
		||||
	common.OptionMap["DataExportInterval"] = strconv.Itoa(common.DataExportInterval)
 | 
			
		||||
@@ -241,6 +242,8 @@ func updateOptionMap(key string, value string) (err error) {
 | 
			
		||||
		common.TopUpLink = value
 | 
			
		||||
	case "ChatLink":
 | 
			
		||||
		common.ChatLink = value
 | 
			
		||||
	case "ChatLink2":
 | 
			
		||||
		common.ChatLink2 = value
 | 
			
		||||
	case "ChannelDisableThreshold":
 | 
			
		||||
		common.ChannelDisableThreshold, _ = strconv.ParseFloat(value, 64)
 | 
			
		||||
	case "QuotaPerUnit":
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user