CaIon
d309727e99
fix: gemini thinking tokens count #1014
2025-04-29 16:21:54 +08:00
CaIon
7e3e9b1a96
refactor: Reducing the lock duration to the minimum necessary time in CacheGetRandomSatisfiedChannel function
2025-04-29 15:57:21 +08:00
CaIon
8b9ba91184
fix: update audio ratio logic for model names in GetAudioRatio function
2025-04-28 20:55:40 +08:00
IcedTangerine
d402f5a5d9
Merge pull request #1008 from JoeyLearnsToCode/feat-search-channel-by-url
...
feat: support searching channels by base url
2025-04-28 13:15:49 +08:00
creamlike1024
8bea13976f
Merge branch 'wzxjohn-feature/wellknown'
2025-04-28 12:55:06 +08:00
JoeyLearnsToCode
c56ec3b3ea
feat: support searching channels by base url
2025-04-28 11:38:53 +08:00
wzxjohn
9f165b8924
fix: remove custom header in oidc well known request
2025-04-28 11:25:04 +08:00
wzxjohn
93f634d228
feat: support empty well known url
2025-04-28 11:25:04 +08:00
wzxjohn
45073b3b2b
feat: improve log delete api
2025-04-28 11:25:04 +08:00
creamlike1024
4f123cf9f4
Merge branch 'error-logs' of github.com:zenghongtu/new-api into zenghongtu-error-logs
2025-04-28 11:06:32 +08:00
CaIon
4759bbdb95
feat: add image preview functionality and update model name instructions in EditChannel
2025-04-27 17:20:49 +08:00
CaIon
5bf1f2f275
refactor: rename InitModelSettings to InitRatioSettings
2025-04-26 17:15:34 +08:00
CaIon
e24d9bd8db
fix: update cacheRatioMap initialization in InitModelSettings function
2025-04-26 17:09:23 +08:00
CaIon
f4dcf8d6b6
feat: initialize cacheRatioMap in InitModelSettings function
2025-04-26 17:06:03 +08:00
CaIon
9246dd2070
fix: handle optional user_group_ratio in LogsTable and render helper
2025-04-26 15:59:49 +08:00
CaIon
1ab9892090
Merge remote-tracking branch 'new-api/main' into gpt-image
...
# Conflicts:
# relay/relay-image.go
2025-04-26 15:54:08 +08:00
CaIon
0647872c15
feat: support image edit model mapping
...
(cherry picked from commit 1a869d8ad77f262ee27675ec2deaf451b1743eb7)
2025-04-26 15:48:59 +08:00
xyfacai
873ebcf0c7
feat: support /images/edit
...
(cherry picked from commit 1c0a1238787d490f02dd9269b616580a16604180)
2025-04-26 15:44:56 +08:00
IcedTangerine
1727d5664a
Merge pull request #950 from datehoer/main
...
fix: update getAndValidImageRequest function in relay/relay-image.go to support grok-2-image model
2025-04-26 15:34:15 +08:00
IcedTangerine
8160fb642c
Merge pull request #843 from IllTamer/pr
...
fix: the pricing available popover display anyway
2025-04-25 18:27:45 +08:00
IcedTangerine
b26b34ec2f
Merge branch 'main' into pr
2025-04-25 18:27:11 +08:00
han shi
a0017f2235
feat: 增加sendcloud邮件服务器的支持 ( #947 )
...
* 增加sendcloud邮件服务器的支持
* 调整代码结构
* Used slince.Contains function
---------
Co-authored-by: shih <shih@knownsec.com >
2025-04-25 18:17:46 +08:00
creamlike1024
b16c05ead4
fix: remove apikey from test channel log, close #1000
2025-04-25 17:08:26 +08:00
CaIon
283d021fa2
refactor: update deepseek beta api
2025-04-25 16:26:16 +08:00
creamlike1024
fea6f17e80
fix: GetMaxUserId use Unscope, close #987
2025-04-25 16:13:11 +08:00
IcedTangerine
f77a153e6c
Merge pull request #975 from asjfoajs/qn-main
...
[#969 ] Refactor: Optimize the request rate limiting for ModelRequestRateLimi…
2025-04-25 11:59:05 +08:00
CaIon
c1a0ca0bc7
refactor: update claude media source handling
2025-04-24 15:59:43 +08:00
CaIon
3169bfe362
refactor: update ClaudeMessageSource struct to include optional Url field and adjust media source handling in relay-claude #993
2025-04-24 00:39:09 +08:00
CaIon
2b1470d5f7
f*** gemini
2025-04-19 18:07:51 +08:00
CaIon
91902ce1f4
refactor: enhance SystemSetting submission logic and handle empty WorkerUrl
2025-04-19 00:20:25 +08:00
CaIon
fdd349c909
refactor: update GeminiThinkingConfig initialization
2025-04-18 23:13:28 +08:00
CaIon
ace677b3e7
refactor: remove unsupported 'exclusiveMinimum' field from cleanFunctionParameters
2025-04-18 22:40:05 +08:00
CaIon
6e2e10adf1
refactor: remove unsupported root-level fields from cleanFunctionParameters
2025-04-18 21:38:12 +08:00
CaIon
1989ae95c1
refactor: streamline value assignment in SettingGeminiModel
2025-04-18 20:08:26 +08:00
CaIon
d378543819
feat: add gemini thinking suffix support #981
2025-04-18 19:36:18 +08:00
CaIon
8ead0864b5
refactor: remove reasoning field from GeneralOpenAIRequest struct
2025-04-17 17:11:42 +08:00
CaIon
80e6b9e04e
feat: add reasoning field to GeneralOpenAIReques
2025-04-17 17:09:46 +08:00
CaIon
b364e9e3b1
refactor: simplify model prefix checks and update message role for o-series models
2025-04-17 16:50:52 +08:00
Apple\Apple
45e8e04d56
🐛 fix: Fix the issue where new whitelist email domain names cannot be added in the system settings
2025-04-16 17:11:59 +08:00
霍雨佳
e121e77265
Refactor: Optimize the token bucket algorithm, specifically the New method in common/imiterlimiter.go.
...
Solution: Remove Redis ping. When printing exceptions, use SysLog to print and add additional logging information.
2025-04-16 16:36:07 +08:00
Apple\Apple
c20fbec17b
Merge pull request #927 from QuentinHsu/refactor-system-setting
...
# Conflicts:
# web/src/App.js
# web/src/components/ModelSetting.js
# web/src/components/PersonalSetting.js
# web/src/components/SystemSetting.js
# web/src/pages/Channel/EditChannel.js
2025-04-16 16:27:11 +08:00
霍雨佳
5aa2076e18
Refactor: Optimize the request rate limiting for ModelRequestRateLimitCount.
...
Reason: The original steps 1 and 3 in the redisRateLimitHandler method were not atomic, leading to poor precision under high concurrent requests. For example, with a rate limit set to 60, sending 200 concurrent requests would result in none being blocked, whereas theoretically around 140 should be intercepted.
Solution: I chose not to merge steps 1 and 3 into a single Lua script because a single atomic operation involving read, write, and delete operations could suffer from performance issues under high concurrency. Instead, I implemented a token bucket algorithm to optimize this, reducing the atomic operation to just read and write steps while significantly decreasing the memory footprint.
2025-04-16 10:33:43 +08:00
CaIon
50bf4a6615
refactor: remove unused mutex from RelayInfo struct
2025-04-15 23:06:32 +08:00
CaIon
115c85390f
fix: claude parallel function calling
2025-04-15 04:52:33 +08:00
CaIon
effa523a54
feat: support gemini output text and inline images. ( close #866 )
2025-04-15 02:32:51 +08:00
CaIon
44a14ced01
fix: try to fix claude to openai format mcp #966
2025-04-15 01:16:06 +08:00
Calcium-Ion
12ca7c4789
Merge pull request #967 from neotf/fix-01
...
fix: wrong field for Claude (OpenAI Upstream)
2025-04-15 00:05:41 +08:00
CaIon
e3b262da1d
feat: 添加流模式下的SSE保活机制 #945
2025-04-14 19:40:23 +08:00
neotf
935cc1c605
fix: wrong systemStr for Claude (OpenAI Upstream)
2025-04-14 01:09:02 +08:00
CaIon
da86db0d46
fix: update model name handling in UI and localization
2025-04-12 17:44:29 +08:00