Skip to content

20251229#130

Merged
mfukushim merged 3 commits intomainfrom
20251225
Dec 28, 2025
Merged

20251229#130
mfukushim merged 3 commits intomainfrom
20251225

Conversation

@mfukushim
Copy link
Owner

add context bar, add sys prompt in progress

m.fukushima added 3 commits December 25, 2025 23:22
Enhance generator context tracking with `maxTokenThreshold` and refine system prompts for consistent token management

- Introduced `maxTokenThreshold` and `summarizePrompt` within the generator-specific `common` schema for fine-tuned control over context handling.
- Added `setSystemPrompt` and `context usage` tracking across multiple generator implementations (`OpenAiGenerator`, `LmStudioGenerator`, `AvatarState`, etc.).
- Integrated `FetchHttpClient` for improved API interactions.
- Enhanced UI components to display token usage percentage and offer configurable settings for `summarizePrompt` and `maxTokenThreshold`.
- Resolved inconsistencies in context logging and improved test coverage for changes.
Enhance generator context tracking with `maxTokenThreshold` and refine system prompts for consistent token management

- Introduced `maxTokenThreshold` and `summarizePrompt` within the generator-specific `common` schema for fine-tuned control over context handling.
- Added `setSystemPrompt` and `context usage` tracking across multiple generator implementations (`OpenAiGenerator`, `LmStudioGenerator`, `AvatarState`, etc.).
- Integrated `FetchHttpClient` for improved API interactions.
- Enhanced UI components to display token usage percentage and offer configurable settings for `summarizePrompt` and `maxTokenThreshold`.
- Resolved inconsistencies in context logging and improved test coverage for changes.
Fix typo in `inputTokens` field and add `inputTokenUsage` calculation

- Corrected `inputTokes` to `inputTokens` across multiple generator implementations for consistency.
- Added `inputTokenUsage` getter in `ContextGenerator` to calculate token usage as a fraction of `maxModelContextSize`.
- Updated related generator logic to utilize the corrected token field name.
@mfukushim mfukushim merged commit 93f38cc into main Dec 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant