Commit Graph

19 Commits

Author SHA1 Message Date
tanzhenxin
8e3b413fdd Fix Default Model Configuration and Fallback Behavior (#142)
* rename the default model to 'qwen3-coder-plus'

* fix: use DEFAULT_GEMINI_MODEL fallback when OPENAI_MODEL is unset

* fix: npm run format
2025-07-30 16:27:28 +08:00
pomelo
bd0d3479c1 feat: Add systemPromptMappings Configuration Feature (#108)
* feat: update system prompt for qwen3-coder

* feat: add default systemPromptMappings for Qwen models

- Add default systemPromptMappings configuration for qwen3-coder-plus model
- Support DashScope compatible mode API endpoints
- Include Qwen coder system prompt template with git repository and sandbox placeholders
- Add comprehensive test coverage for default and custom systemPromptMappings
- Update documentation to reflect the new default configuration behavior
- Ensure backward compatibility with existing user configurations

* feat: remove default system prompt template

* fix: test ci

* feat: handle code indentation issues

* feat: update prompt.test.snapshots

* feat: add URL trailing slash compatibility for system prompt mappings

- Add normalizeUrl() function to standardize URLs by removing trailing slashes
- Add urlMatches() function to compare URLs ignoring trailing slash differences
- Replace direct includes() comparison with urlMatches() for baseUrl matching
- Add comprehensive tests to verify URL matching with/without trailing slashes
- Fixes issue where URLs like 'https://api.example.com' and 'https://api.example.com/' were treated as different

* feat: update code
2025-07-29 13:11:41 +08:00
Yiheng Xu
dc087deace Update README.md 2025-07-25 14:39:35 -07:00
Fan
d7890d6463 update: add info about modelscope-api (#116) 2025-07-25 13:15:25 +08:00
zeyu cui
778837507e add star history (#109)
* add star history

* preflight

---------

Co-authored-by: koalazf.99 <koala99.zf@gmail.com>
2025-07-25 00:11:47 +08:00
pomelo
b8e2891f3b Merge pull request #102 from QwenLM/feature/fan/fix-token-usage
fix: streaming token usage
2025-07-24 20:30:47 +08:00
koalazf.99
c00df172a2 fix: streaming token usage 2025-07-24 20:19:52 +08:00
koalazf.99
3b7e2e34d2 update: add token reminder in readme 2025-07-24 00:07:31 +08:00
koalazf.99
01d88eef4d add instructions for dashscope API configuration 2025-07-23 17:47:41 +08:00
Fan
40ee936453 run preflight (#55) 2025-07-23 01:18:31 -07:00
Nan Li
173246723e fix: resolve RadioButtonSelect array bounds crash and auth dialog navigation (#46)
- Add bounds checking in RadioButtonSelect to prevent accessing undefined array elements
- Add useEffect to ensure activeIndex stays within valid bounds when items array changes
- Add validation guards around navigation handlers (up/down arrow keys)
- Fix AuthDialog initialAuthIndex calculation to prevent negative values from findIndex
- Ensure Enter key works properly on authentication screen

Fixes TypeError: Cannot read properties of undefined (reading 'value') that occurred
when activeIndex was out of bounds due to dynamic array changes or invalid initialization.

Signed-off-by: loheagn <loheagn@icloud.com>
Co-authored-by: linan.loheagn3 <linan.loheagn3@bytedance.com>
2025-07-23 14:15:35 +08:00
奕桁
e4a3f2656e update png 2025-07-22 14:27:43 -07:00
Yiheng Xu
f8e55596c8 Update README.md 2025-07-22 13:02:12 -07:00
Yiheng Xu
d6fd2d472b Update README.md 2025-07-22 09:57:08 -07:00
Fan
daad04613e pre-release: fix ci (#1)
* fix aoneci

* remove codeql

* sync version to 0.0.1-alpha.7

* renaming org to qwen-code
2025-07-22 09:27:14 -07:00
Yiheng Xu
13c0b24110 Update README.md 2025-07-22 08:32:58 -07:00
koalazf.99
a9d6965bef pre-release commit 2025-07-22 23:26:01 +08:00
Binyuan Hui
c5dee4bb17 Update README.md 2025-06-26 09:38:11 +08:00
Binyuan Hui
71f8c070ec Initial commit 2025-06-26 09:37:46 +08:00