[PR #165] [MERGED] Add configurable context window size #217

Closed
opened 2026-03-03 13:53:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jehna/humanify/pull/165
Author: @jehna
Created: 10/18/2024
Status: Merged
Merged: 10/18/2024
Merged by: @jehna

Base: mainHead: add/configurable-context-window-size


📝 Commits (1)

  • 22b6e4f Add configurable context window size

📊 Changes

10 files changed (+141 additions, -53 deletions)

View changed files

src/commands/default-args.ts (+1 -0)
📝 src/commands/gemini.ts (+10 -1)
📝 src/commands/local.ts (+9 -1)
📝 src/commands/openai.ts (+14 -1)
src/number-utils.ts (+7 -0)
📝 src/plugins/gemini-rename.ts (+4 -1)
📝 src/plugins/local-llm-rename/local-llm-rename.ts (+2 -1)
📝 src/plugins/local-llm-rename/visit-all-identifiers.test.ts (+73 -35)
📝 src/plugins/local-llm-rename/visit-all-identifiers.ts (+17 -12)
📝 src/plugins/openai/openai-rename.ts (+4 -1)

📄 Description

It seems that context window of 200 was way too small, I saw quite many _________id style renamess in the issues. Using a bigger context window should fix this issue, and mmaking the window configurable should help to debug any future issues.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jehna/humanify/pull/165 **Author:** [@jehna](https://github.com/jehna) **Created:** 10/18/2024 **Status:** ✅ Merged **Merged:** 10/18/2024 **Merged by:** [@jehna](https://github.com/jehna) **Base:** `main` ← **Head:** `add/configurable-context-window-size` --- ### 📝 Commits (1) - [`22b6e4f`](https://github.com/jehna/humanify/commit/22b6e4fe9e9c02c4094b66f7e26484fa9b857b1d) Add configurable context window size ### 📊 Changes **10 files changed** (+141 additions, -53 deletions) <details> <summary>View changed files</summary> ➕ `src/commands/default-args.ts` (+1 -0) 📝 `src/commands/gemini.ts` (+10 -1) 📝 `src/commands/local.ts` (+9 -1) 📝 `src/commands/openai.ts` (+14 -1) ➕ `src/number-utils.ts` (+7 -0) 📝 `src/plugins/gemini-rename.ts` (+4 -1) 📝 `src/plugins/local-llm-rename/local-llm-rename.ts` (+2 -1) 📝 `src/plugins/local-llm-rename/visit-all-identifiers.test.ts` (+73 -35) 📝 `src/plugins/local-llm-rename/visit-all-identifiers.ts` (+17 -12) 📝 `src/plugins/openai/openai-rename.ts` (+4 -1) </details> ### 📄 Description It seems that context window of 200 was way too small, I saw quite many `_________id` style renamess in the issues. Using a bigger context window should fix this issue, and mmaking the window configurable should help to debug any future issues. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 13:53:35 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/humanify#217
No description provided.