Commit Graph

566 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
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
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
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
WingGao
951e46c1b3 feat: 火山V3接口 2025-02-13 18:33:48 +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
George
7fa53af2af feat: support spark new model 2024-10-14 16:38:11 +08:00
Minghan Zhang
29b6e6c888
Merge pull request #244 from PeterDaveHelloKitchen/SupportTraditionalChineseZhTW
Add a basic zh-tw i18n locale
2024-09-04 01:04:07 +08:00
Peter Dave Hello
36f7ffb9f6 Add a basic zh-tw i18n locale 2024-08-29 22:13:30 +08:00
Peter Dave Hello
7bc048788e feat: support the latest OpenAI model chatgpt-4o-latest
This also means we can save the steps to update the latest model.

 Reference:
 - https://x.com/OpenAIDevs/status/1823510395619000525
 - https://x.com/lmsysorg/status/1823515224064098546
 - https://x.com/lmsysorg/status/1823515229491515715
 - https://platform.openai.com/docs/models/gpt-4o

 > Dynamic model continuously updated to the current version of GPT-4o
 in ChatGPT. Intended for research and evaluation.
 >
 > We are releasing this model for developers and researchers to explore
 OpenAI's latest research. For production use, OpenAI recommends using
 dated GPT models, which are optimized for API usage.
 >
 > https://platform.openai.com/docs/models/gpt-4o#4ofootnote
2024-08-29 22:04:32 +08:00
XiaomaiTX
a95a4cb35c feat: support model gpt-4o-2024-08-06 2024-08-08 15:20:17 +08:00
XiaomaiTX
0296a45ac9 feat(getModelColor): better model color matching 2024-07-22 20:32:11 +08:00
XiaomaiTX
2efef764c0 feat: Add support of gpt-4o-mini
chore(version): bump version from `3.11.1` to `3.11.2`
2024-07-19 20:38:56 +08:00
XiaomaiTX
77ab253f45 fix: redefine sendKeys 2024-07-19 20:29:43 +08:00
XiaomaiTX
b7d50acd6e chore(version): bump version from 3.11.0 to 3.11.1 in tauri.conf.json and bootstrap.ts 2024-07-18 20:56:06 +08:00
XiaomaiTX
b78e8fe2e9 fix(settings.ts): correct default sender behavior for mobile and PC 2024-07-18 20:13:47 +08:00
XiaomaiTX
f3a97891bb fix: Remove junk file 2024-07-17 13:46:11 +08:00
XiaomaiTX
6e8c33f1a2 feat: better admin user subscription management ui 2024-07-06 15:32:41 +08:00
Deng Junhai
9cb958080b fix: fix edge browser adapter
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-06-30 03:00:50 +08:00
Deng Junhai
bad46895ac feat: support deepseek
feat: support deepseek
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-06-30 02:48:42 +08:00
Deng Junhai
b0a684cada feat: support searxng (#216)
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-06-28 01:56:49 +08:00
Deng Junhai
16aba18926 chore: Compatible with pre-modified SMTP sending method (#174) 2024-06-23 19:25:40 +08:00
Deng Junhai
6f3cdad1e7 feat: SMTP Compatibility Enhancement and SSL Protocol Support (#174) 2024-06-23 03:04:52 +08:00
Deng Junhai
2024302316 chore: Define sending defaults based on different device types (#204) 2024-06-22 01:06:27 +08:00
Deng Junhai
0ddd2d2a89 fix: support meta+enter send key in macos platform (#160)
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-06-21 18:26:45 +08:00
Minghan Zhang
1b02fade6d
Revert "fix: remove repetitive quota refresh interval" 2024-06-02 16:45:08 +08:00
Minghan Zhang
f860a99d4d
fix: remove repetitive quota refresh interval (merge pr #180 @eddsi)
fix: remove repetitive quota refresh interval
2024-06-01 11:35:30 +08:00
XiaomaiTX
aa06dabc5b feat: add gemini-1.5-pro-latest and gemini-1.5-flash-latest model 2024-05-21 00:35:34 +08:00
XiaomaiTX
96fad636ea feat: add gpt-4-turbo model 2024-05-21 00:28:27 +08:00
XiaomaiTX
4248fe702e feat: support model gpt-4o and gpt-4o-2024-05-13 2024-05-18 12:41:52 +08:00
Ethan Stewart
5214ea58ae fix: remove repetitive quota refresh interval 2024-04-29 16:52:58 +08:00
Zhang Minghan
1150ff2e29 feat: sync chatnio blob service ocr feature 2024-04-25 20:36:35 +08:00
Deng Junhai
a888fa62ef feat: support email suffix checkout
feat: support email suffix checkout
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-04-04 12:12:18 +08:00
Deng Junhai
e60b16fc9a feat: optimize record history conversation id rule
feat: optimize record history conversation id rule
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-04-04 11:57:56 +08:00
Deng Junhai
6615cd92a5 fix: fix combo-box empty value state
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-03-31 16:29:43 +08:00
Deng Junhai
ad51b17313 fix: fix multi combobox empty state problem
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-03-31 13:48:23 +08:00
Deng Junhai
48a4b6d767 chore: update i18n
chore: update i18n
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-03-31 13:02:44 +08:00
Deng Junhai
079c55d752 fix: fix multi combobox value is not in list candidate set issue
fix: fix multi combobox value is not in list candidate set issue
Co-Authored-By: Minghan Zhang <112773885+zmh-program@users.noreply.github.com>
2024-03-31 00:29:32 +08:00