Commit Graph

900 Commits

Author SHA1 Message Date
Sh1n3zZ
1fcde51da4
chore: community awareness banners
Some checks failed
Build Test / release (18.x) (push) Has been cancelled
Docker Image CI / build (push) Has been cancelled
2025-05-01 03:12:48 +08:00
Sh1n3zZ
0398b8f724
fix: automatic translation to Russian when translating to Traditional Chinese 2025-05-01 03:12:09 +08:00
Sh1n3zZ
938a9d76b6
fix: export issue
Some checks failed
Build Test / release (18.x) (push) Has been cancelled
Docker Image CI / build (push) Has been cancelled
2025-04-29 21:26:58 +08:00
Sh1n3zZ
2d2fe52bab
chore: transition animation for Sun and Moon icons when switching themes 2025-04-29 21:21:39 +08:00
Sh1n3zZ
34dfa05c9b
chore: remove non-essential theme switching animations 2025-04-29 21:09:38 +08:00
Sh1n3zZ
6ff57f1231
feat: gpt-image-1 2025-04-29 21:08:28 +08:00
Sh1n3zZ
f787f3513a
feat: add coze channel (#365) 2025-04-29 19:12:52 +08:00
Sh1n3zZ
628b0ba8d2
feat: add dify channel
Some checks failed
Build Test / release (18.x) (push) Has been cancelled
Docker Image CI / build (push) Has been cancelled
2025-04-13 02:49:35 +08:00
Sh1n3zZ
1856dd0312
feat: Google Imagen image generation
Some checks failed
Build Test / release (18.x) (push) Has been cancelled
Docker Image CI / build (push) Has been cancelled
2025-03-25 01:56:28 +08:00
LiuShen
8f0f9a0fda fix: The part of the thinking block that exceeds due to the overflow-hidden property cannot be displayed.
Some checks failed
Build Test / release (18.x) (push) Has been cancelled
Docker Image CI / build (push) Has been cancelled
2025-03-19 18:40:08 +08:00
GreenDreamer
9c03dee238 修复了暗色情况下和刷新后图标和风格显示不一样的情况
Some checks failed
Build Test / release (18.x) (push) Has been cancelled
Docker Image CI / build (push) Has been cancelled
(cherry picked from commit 1fcf08f0e11fc4085e7d1cb4727ad1f334e9688c)
2025-03-06 20:09:12 +08:00
ncs19960831
e5d28b808d refactor: improve user cache management and password migration
Some checks failed
Build Test / release (18.x) (push) Has been cancelled
Docker Image CI / build (push) Has been cancelled
2025-02-27 18:33:48 +08:00
Sh1n3zZ
9f6cec4298
feat: add input token and quota calculation for API request pre-checks 2025-02-24 20:24:18 +08:00
Sh1n3zZ
4d841c4a33 feat: enhance Skylark adapter with reasoning content handling & debug log output 2025-02-20 20:48:12 +08:00
Hobo12
7a57d86894 Update Markdown.tsx
###  Add Math Preprocessing for Markdown Component

#### Summary
This PR introduces preprocessing for math expressions within the Markdown component. The component now transforms inline math (e.g., `\(...\)`) to use the `$ ... $` format and block math (e.g., `\[...\]`) to use the `$$ ... $$` format. This enhancement helps in standardizing the math syntax before it’s processed by the Markdown renderer.

#### Changes
- **Enhanced Markdown Component:**
  - Added a `useMemo` hook in the `Markdown` function to preprocess the `children` content.
  - **Inline Math:** Replaces `\(...\)` with `$ ... $`.
  - **Block Math:** Replaces `\[...\]` with `\n$$\n ... \n$$\n`, ensuring that block math expressions are placed on separate lines.
- **Refactoring:**
  - The processed content is then passed to the existing `MarkdownContent` component, preserving all existing functionalities like code highlighting, link rendering, and file block handling.

#### Rationale
Previously, the Markdown component did not handle the conversion of LaTeX-style math delimiters, which could lead to inconsistent rendering of math expressions. By preprocessing the content, we ensure a more robust and flexible handling of both inline and block math expressions.

#### Possible Drawbacks
- **Non-Mathematical Content Interference:**  
  The preprocessing approach targets `\(...\)` and `\[...\]` delimiters universally. This means that any non-mathematical content using these delimiters for other purposes might be unintentionally transformed, potentially leading to unexpected formatting issues.

#### How to Test
1. **Inline Math:**  
   - Input: `This is inline math: \(a^2 + b^2 = c^2\)`
   - Expected Transformation: `This is inline math: $ a^2 + b^2 = c^2 $`
2. **Block Math:**  
   - Input: `Here is block math: \[ \int_0^\infty e^{-x} dx \]`
   - Expected Transformation:  
     ```
     Here is block math: 
     $$
     \int_0^\infty e^{-x} dx
     $$
     ```
3. **Non-Mathematical Content:**  
   - Ensure that content not intended as math that might incidentally use these delimiters is reviewed to avoid unexpected changes.
4. **Overall Rendering:**  
   - Verify that the Markdown renders as expected with both math expressions and other markdown elements (e.g., code blocks, links).

#### Additional Notes
- The changes maintain backwards compatibility. If there are no math delimiters present, the content remains unaffected.
- The updated component still supports HTML rendering based on the `acceptHtml` prop.
- No changes were made to the auxiliary components (`Label`, `Link`, `Code`), ensuring that the overall markdown styling and functionalities remain consistent.
2025-02-18 20:19:37 +08:00
Sh1n3zZ
ec48ae9a51
fix: improve mobile touch interaction for select components (#334) 2025-02-17 23:08:05 +08:00
Sh1n3zZ
1998b42643
feat: thinking process text i18n 2025-02-17 22:59:10 +08:00
Sh1n3zZ
24ffd86f77
feat: support folding CoT (#327) 2025-02-17 22:51:01 +08:00
Sh1n3zZ
37fd6cd399
fix: redis otp cache key for email verification when delete 2025-02-15 21:39:16 +08:00
Sh1n3zZ
ebd5fb67dd
chore: clarify TopK comment 2025-02-13 20:43:55 +08:00
WingGao
cf3fa15f49 fix: 火山模型 2025-02-13 18:33:48 +08:00
WingGao
951e46c1b3 feat: 火山V3接口 2025-02-13 18:33:48 +08:00
Sh1n3zZ
f2e575d98d
fix: build error on arm64 2025-02-12 18:07:43 +08:00
Sh1n3zZ
bd7987bb64
fix: build error 2025-02-12 16:47:37 +08:00
PandaJu
6fb6b6a229 Fix(Chat):修复带有reasoning_content信息看不到回答内容的问题 2025-02-11 13:42:19 +08:00
XiaomaiTX
72f3a45366 Merge branch 'main' of https://github.com/coaidev/coai 2025-02-09 10:51:14 +08:00
XiaomaiTX
2942218109 feat(adapter/openai): add compatibility for new model o1/o3 with dynamic temperature and max tokens handling
chore(app/src/conf): bump version to 3.11.2 for new model compatibility update
2025-02-09 10:51:09 +08:00
Sh1n3zZ
0567748d19
fix: build error &
import conflicts
2025-02-08 20:38:00 +08:00
Sh1n3zZ
fc81fbfc95
feat: support deepseek thinking 2025-02-07 16:21:21 +08:00
XiaomaiTX
403c2b898b
Merge pull request #262 from eltociear/add-japanese-readme 2025-02-06 13:10:48 +08:00
XiaomaiTX
55569bbb22
Merge pull request #324 from ncs19960831/main
Update docker-compose.watch.yaml
2025-02-06 13:04:34 +08:00
GreenDreamer
26f2218ab5
Update docker-compose.watch.yaml
fix watchpower command param
2025-01-31 19:37:07 +08:00
Minghan Zhang
6b603c7800
fix: watchtower retries causing service crash (#309)
fix: watchtower retries causing service crash
2024-12-08 12:42:24 +08:00
Minghan Zhang
a0831c2cce fix: watchtower retries causing service crash
Fixes #308
2024-12-08 12:41:59 +08:00
Minghan Zhang
eb44490541
Merge pull request #301 from coaidev/zmh-program/fix-smtp-compatibility
Fix SMTP compatibility issues to support office365 provider
2024-12-03 17:18:48 +08:00
Minghan Zhang
7a467e6e7f Fix SMTP compatibility issues to support office365 provider
Add support for multiple SMTP providers in `utils/smtp.go`.

* **Provider-specific handling**:
  - Add specific handling for Outlook, QQ, Office365, Resend, and Tencent SMTP policies.
  - Use `switch` statement to set `TLSConfig` based on the SMTP host.
2024-12-03 17:11:51 +08:00
Minghan Zhang
928319acc0
fix: smtp starttls compatibility issue (pr #292)
fix: smtp starttls compatibility issue
2024-11-27 14:31:59 +08:00
Minghan Zhang
5986f49bd9
chore: modify comment lang (by copilot space) 2024-11-27 14:31:00 +08:00
Minghan Zhang
068f2ddba0
feature: add Alibaba Cloud Computing Nest one-click deployment button (pr #283)
feature: add Alibaba Cloud Computing Nest one-click deployment button
2024-11-27 11:58:35 +08:00
liuzheng
6784b5b813 feature: change service name 2024-11-27 11:02:13 +08:00
liuzheng
369e8f57eb feature: change service name 2024-11-27 10:53:46 +08:00
Oganneson
c85898ebc8
将smtp.go转换为gomail.v2实现以解决StartTLS相关问题 2024-11-26 04:00:05 +08:00
liuzheng
4365de5402 feature: add Alibaba Cloud Computing Nest one-click deployment button 2024-11-21 18:05:50 +08:00
Zhang Minghan
a2bc3f470b chore: update btpanel deployment 2024-11-09 18:37:06 +08:00
Ikko Eltociear Ashimine
2d527721f2 docs: add Japanese README
I created Japanese translated README.
2024-11-07 15:19:30 +09:00
Zhang Minghan
c8a22cc8c5 chore: update new discord community links 2024-11-07 00:35:23 +08:00
Hirx
bccbad95bf
chore: update pro link cn 2024-10-17 22:38:41 +08:00
Hirx
e89e3891ee
chore: update pro link 2024-10-17 22:38:03 +08:00
Minghan Zhang
3f6026db42
Merge pull request #253 from mercury7720/main
feat: support spark desk new model
2024-10-17 01:47:38 +08:00
George
1ba6faaa79 fix: fix max_tokens 2024-10-14 17:05:02 +08:00