Commit Graph

  • eb75ff232f 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
  • 272662089d refactor: remove unused mutex from RelayInfo struct CaIon 2025-04-15 23:06:32 +08:00
  • 214ca4db56 fix: claude parallel function calling CaIon 2025-04-15 04:52:33 +08:00
  • 473e8e0eaf feat: support gemini output text and inline images. (close #866) CaIon 2025-04-15 02:32:51 +08:00
  • 99efc1fbb6 fix: try to fix claude to openai format mcp #966 CaIon 2025-04-15 01:16:06 +08:00
  • d283f6b35f Merge pull request #967 from neotf/fix-01 Calcium-Ion 2025-04-15 00:05:41 +08:00
  • 2f3acd9d22 feat: 添加流模式下的SSE保活机制 #945 CaIon 2025-04-14 19:40:23 +08:00
  • eee6dee599 fix: wrong systemStr for Claude (OpenAI Upstream) neotf 2025-04-14 01:09:02 +08:00
  • dcf7878772 fix: update model name handling in UI and localization CaIon 2025-04-12 17:44:29 +08:00
  • 97bc2b4474 feat: add error logging functionality to relay and update logs table for error type display jasonzeng 2025-04-12 00:43:34 +08:00
  • ef8ae4db80 fix: xAI usage CaIon 2025-04-11 23:31:32 +08:00
  • 90576d0261 feat: enhance Claude to OpenAI request conversion with additional relay info support CaIon 2025-04-11 19:13:38 +08:00
  • 4b3e30e669 feat: 完善openai转claude支持 CaIon 2025-04-11 18:28:50 +08:00
  • 75570af967 chore: update .gitignore and docker-compose.yml to include tiktoken_cache directory CaIon 2025-04-11 16:24:27 +08:00
  • cca9c0479f feat: enhance file handling and logging in the application CaIon 2025-04-11 16:23:54 +08:00
  • 8a2332074f refactor: move maxFileSize variable inside GetFileBase64FromUrl function CaIon 2025-04-11 15:53:23 +08:00
  • 2ec4565601 feat: implement parameter cleaning for Gemini functions CaIon 2025-04-10 22:35:03 +08:00
  • a4fb33957f feat: support zhipu_4v embeddings path CaIon 2025-04-10 20:53:51 +08:00
  • 909c5eb276 Merge pull request #959 from Praying/main Calcium-Ion 2025-04-10 17:21:55 +08:00
  • 8723e3f239 feat: add xAI handling and response processing CaIon 2025-04-10 17:20:59 +08:00
  • 9328b907f2 fix(relay): 优化数据流处理 quran 2025-04-10 16:56:16 +08:00
  • 8efa12b941 Merge pull request #953 from wkxu/main Calcium-Ion 2025-04-10 16:14:11 +08:00
  • 7b997b3a2c Merge pull request #956 from HynoR/feat/xai Calcium-Ion 2025-04-10 16:13:48 +08:00
  • 700c05b826 feat: update adaptor methods and add new image model HynoR 2025-04-10 15:08:12 +08:00
  • c5103237b0 feat: add xai grok-3-mini reasoning effort HynoR 2025-04-10 13:31:43 +08:00
  • f500eb17a8 feat: add xai channel HynoR 2025-04-10 12:26:48 +08:00
  • 86f6bb7abe refactor: 把common/instants.go里的从Getenv获取的参数,放到init.go的LoadEnv函数里获取 把constant/env.go里的从Getenv获取的参数,放到env.go的InitEnv函数里获取。以避免.env文件配置参数不起作用的情况 wkxu 2025-04-10 09:02:19 +08:00
  • c4c1099ae5 Merge pull request #944 from lamcodes/main Calcium-Ion 2025-04-10 00:09:54 +08:00
  • c869455456 fix: Update model ratios for gemini-2.5-pro CaIon 2025-04-10 00:09:11 +08:00
  • f89d8a0fe5 refactor: Remove duplicate model settings initialization in main function CaIon 2025-04-10 00:07:34 +08:00
  • 3d6d19903b refactor: Update localization keys for API address in English translations and adjust related UI labels CaIon 2025-04-09 22:22:19 +08:00
  • c5f1a0c712 Add support for grok-2-image. Currently, grok-2-image doesn't support the size, quality, or style parameters. Set 'size'='empty' to use grok-2-image datehoer 2025-04-09 15:05:00 +08:00
  • 524d4a65bf Update: Gemini channel fetch_models zkp 2025-04-08 22:43:13 +08:00
  • 082218173a feat: Add CheckSetup function call in main to ensure proper initialization #942 CaIon 2025-04-08 18:14:36 +08:00
  • 67cbbc2266 Merge pull request #930 from Yiffyi/main Calcium-Ion 2025-04-08 17:39:42 +08:00
  • 79b35e385f Update MaxTokens for gemini model to 300 in test request CaIon 2025-04-08 17:37:25 +08:00
  • 03e8ab4126 Merge pull request #936 from lamcodes/main Calcium-Ion 2025-04-08 17:33:31 +08:00
  • 30f32c6a6d Set MaxTokens to 50 for gemini Calcium-Ion 2025-04-08 17:33:10 +08:00
  • 5813ca780f feat: Integrate SetupCheck component for improved setup validation in routing CaIon 2025-04-08 17:31:46 +08:00
  • aa34c3035a feat: Initialize model settings and improve concurrency control in operation settings CaIon 2025-04-07 22:20:47 +08:00
  • fb9f595044 feat: Add concurrency control to group ratio management with mutexes CaIon 2025-04-07 21:55:54 +08:00
  • f24de65626 fix: gemini test MaxTokens zkp 2025-04-06 23:23:53 +08:00
  • e34dccbc65 fix: cannot save OIDC settings Yiffyi Jia 2025-04-05 04:24:38 +00:00
  • f6e8887482 Update model-ratio.go CaIon 2025-04-04 23:43:14 +08:00
  • a29f4d88c5 Update model-ratio.go CaIon 2025-04-04 23:41:41 +08:00
  • a6bb30af41 fix: Improve setup check logic and logging for system initialization CaIon 2025-04-04 21:27:24 +08:00
  • 09adc6f201 refactor(web): systemSetting component to enhance UI structure and add new configuration options QuentinHsu 2025-04-04 17:37:52 +08:00
  • 6b79b89dc0 style(web): format code QuentinHsu 2025-04-04 12:00:38 +08:00
  • 424424c160 Update model-ratio.go CaIon 2025-04-04 00:31:24 +08:00
  • e5baa6ee1c feat: Enhance ModelSettingsVisualEditor with pricing modes and improved model management features CaIon 2025-04-03 20:42:08 +08:00
  • 9207d729ca feat: Add new localization strings for system initialization CaIon 2025-04-03 19:27:25 +08:00
  • 27933da884 fix: Update option key from SelfUseModeEnabled to DemoSiteEnabled in PostSetup function CaIon 2025-04-03 19:21:53 +08:00
  • 454dac17ea feat: Add timestamp and version to setup initialization in PostSetup function CaIon 2025-04-03 19:16:17 +08:00
  • 1921ac3692 fix: Correct option key for SelfUseModeEnabled in setup controller CaIon 2025-04-03 19:15:04 +08:00
  • 42a2418d9a Merge remote-tracking branch 'origin/main' CaIon 2025-04-03 19:09:26 +08:00
  • 5cb317bdbd Update README.md CaIon 2025-04-03 19:09:13 +08:00
  • 37dd1ef099 Merge pull request #925 from Calcium-Ion/setup Calcium-Ion 2025-04-03 19:01:45 +08:00
  • 5fa6462412 feat: Refine personal mode description in setup page for clarity CaIon 2025-04-03 19:01:16 +08:00
  • a882e680ae feat: Implement system setup functionality CaIon 2025-04-03 18:57:15 +08:00
  • 552e2850c5 Merge remote-tracking branch 'origin/main' CaIon 2025-04-03 17:33:03 +08:00
  • c418d9ed9a feat: Enhance user settings and notification options CaIon 2025-04-03 17:32:48 +08:00
  • 1dc2284d57 Merge pull request #909 from jasinliu/feature/fix-dify-thinking Calcium-Ion 2025-04-03 16:23:12 +08:00
  • f4cc90c8d6 Merge pull request #893 from wizcas/replace-linux-do-icon Calcium-Ion 2025-03-31 22:38:41 +08:00
  • 140d3a974b Merge pull request #895 from Feiyuyu0503/main Calcium-Ion 2025-03-31 22:38:25 +08:00
  • 2ecb742e47 Merge pull request #912 from OrdinarySF/main Calcium-Ion 2025-03-31 22:38:08 +08:00
  • 9066cfa8a0 Merge pull request #914 from JoeyLearnsToCode/main Calcium-Ion 2025-03-31 22:37:26 +08:00
  • 4f437f30e0 Merge pull request #916 from xifan2333/fix/systemSettingsUI Calcium-Ion 2025-03-31 22:36:14 +08:00
  • 3c2a86f94d feat: Update option handling in SystemSetting xifan 2025-03-31 00:46:13 +08:00
  • 1b07282153 feat: Add Parameters Override JoeyLearnsToCode 2025-03-29 14:39:39 +08:00
  • af7f886c39 refactor: use handleFieldChange function on change event Ordinary 2025-03-28 12:44:40 +00:00
  • 9cfa138796 fix: fixed bug where target.id was null when clicking 'x' icon Ordinary 2025-03-28 12:43:26 +00:00
  • dc132655a6 fix dify thinking jasinliu 2025-03-28 00:21:27 +08:00
  • a378665b8c feat: Add new cache ratios for o3-mini and gpt-4.5-preview models 1808837298@qq.com 2025-03-27 18:47:50 +08:00
  • 3516aad349 update model ratio 1808837298@qq.com 2025-03-27 17:02:09 +08:00
  • 58525c574b feat: Enhance GetCompletionRatio function 1808837298@qq.com 2025-03-27 16:38:29 +08:00
  • 1df39e5a7f update model ratio 1808837298@qq.com 2025-03-27 16:24:30 +08:00
  • be6ffd3c60 docs: fix a typo feiyuyu 2025-03-22 21:28:25 +08:00
  • a9522075c6 replace the linuxdo icon in the login form Wizcas Chen 2025-03-22 17:16:07 +08:00
  • 983d31bfd3 Merge pull request #886 from seefs001/main Calcium-Ion 2025-03-20 23:22:20 +08:00
  • 20c043f584 fix: claude function calling type Seefs 2025-03-19 22:48:49 +08:00
  • 73263e02d6 fix: Adjust MaxTokens logic for non-Claude models in test request 1808837298@qq.com 2025-03-17 23:44:32 +08:00
  • 7143b0f160 feat: Add support for cross-region AWS model handling in awsStreamHandler 1808837298@qq.com 2025-03-17 23:41:00 +08:00
  • dd82618c05 refactor: Improve token quota consumption logic 1808837298@qq.com 2025-03-17 17:52:54 +08:00
  • 19935ee8ac feat: Enhance ConvertClaudeRequest method to set request model and handle vertex-specific request conversion 1808837298@qq.com 2025-03-17 17:13:33 +08:00
  • 6fef5aaf22 feat: Update RerankerInfo structure and modify GenRelayInfoRerank function to accept RerankRequest 1808837298@qq.com 2025-03-17 16:44:53 +08:00
  • b5aa3c129b Merge pull request #872 from neotf/main Calcium-Ion 2025-03-17 16:18:11 +08:00
  • 8c7c39550c refactor: Update ClaudeResponse error handling to use pointer for ClaudeError and improve nil checks in response processing 1808837298@qq.com 2025-03-16 23:14:45 +08:00
  • 962e803d8a Update README 1808837298@qq.com 2025-03-16 21:53:00 +08:00
  • ff57ced2bb Update README 1808837298@qq.com 2025-03-16 21:47:32 +08:00
  • 2223806c00 Update README 1808837298@qq.com 2025-03-16 21:17:08 +08:00
  • d1c62a583d feat: support xinference rerank to jina format 1808837298@qq.com 2025-03-16 21:06:29 +08:00
  • 53b3599827 refactor: Enhance Claude response handling 1808837298@qq.com 2025-03-16 19:11:58 +08:00
  • b3b1c803fc feat: Introduce JSON decoding utility functions and update error handling in Claude and OpenAI response structures 1808837298@qq.com 2025-03-16 18:34:39 +08:00
  • a4a40c495d Merge remote-tracking branch 'origin/main' 1808837298@qq.com 2025-03-16 16:48:15 +08:00
  • ee302c063c refactor: Enhance error handling in AWS and Claude response processing by updating function signatures and improving error propagation 1808837298@qq.com 2025-03-16 16:47:16 +08:00
  • 5a67bdf1b0 Merge pull request #851 from HynoR/main Calcium-Ion 2025-03-16 16:31:48 +08:00
  • 2c81a5f0cc refactor: Streamline AWS and Claude response handling by consolidating logic and improving error management 1808837298@qq.com 2025-03-16 15:57:01 +08:00
  • b84b6affe9 Merge pull request #874 from HynoR/feat/gemini2 Calcium-Ion 2025-03-15 19:44:37 +08:00
  • c183c1231c refactor: Replace direct access to ImageUrl with GetImageMedia method across multiple relay channels 1808837298@qq.com 2025-03-15 19:43:37 +08:00
  • 54e738941d feat: Add warning modal for base URL input and display warning banner for specific channel type in EditChannel component 1808837298@qq.com 2025-03-15 19:38:05 +08:00