Skip to content

feat: support contextWindow & maxToken setting, use lruCache to store sessions#4460

Merged
hacke2 merged 5 commits intov3.8from
feat/max-tokens
Mar 10, 2025
Merged

feat: support contextWindow & maxToken setting, use lruCache to store sessions#4460
hacke2 merged 5 commits intov3.8from
feat/max-tokens

Conversation

@ensorrow
Copy link
Copy Markdown
Contributor

Types

  • 🎉 New Features

Background or solution

feat: support contextWindow & maxToken setting, use lruCache to store sessions
默认值使用代码内维护的映射

image

Changelog

feat: support contextWindow & maxToken setting, use lruCache to store sessions

@ensorrow ensorrow requested review from Aaaaash, Ricbet and hacke2 March 10, 2025 10:43
@opensumi opensumi Bot added the 🎨 feature feature required label Mar 10, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 10, 2025

Codecov Report

Attention: Patch coverage is 21.42857% with 33 lines in your changes missing coverage. Please review.

Project coverage is 53.26%. Comparing base (1c650c5) to head (0d7199a).
Report is 1 commits behind head on v3.8.

Files with missing lines Patch % Lines
...ai-native/src/browser/chat/chat-manager.service.ts 9.09% 19 Missing and 1 partial ⚠️
packages/ai-native/src/browser/chat/chat-model.ts 26.66% 9 Missing and 2 partials ⚠️
...s/ai-native/src/browser/chat/chat-proxy.service.ts 0.00% 1 Missing ⚠️
...ai-native/src/browser/model/msg-history-manager.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             v3.8    #4460      +/-   ##
==========================================
- Coverage   53.26%   53.26%   -0.01%     
==========================================
  Files        1661     1661              
  Lines      102543   102562      +19     
  Branches    22339    22193     -146     
==========================================
+ Hits        54624    54627       +3     
- Misses      39869    39883      +14     
- Partials     8050     8052       +2     
Flag Coverage Δ
jsdom 48.75% <21.42%> (-0.01%) ⬇️
node 12.20% <4.87%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@hacke2 hacke2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hacke2 hacke2 merged commit 4c83b34 into v3.8 Mar 10, 2025
@hacke2 hacke2 deleted the feat/max-tokens branch March 10, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎨 feature feature required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants