fix(llm): recognize published GPT-6 context capacities

Add the official context capacities for GPT-6 Sol and Luna, GPT-6.1 Sol
and Terra alongside the existing Astra entry. This prevents valid tool
results from being trimmed against the fallback context budget.

https://developers.openai.com/api/docs/models/all

Co-Authored-By: GPT-6.1 Sol High
This commit is contained in:
iSanae233
2026-11-06 17:36:24 +08:00
parent 60fb3bdfdd
commit 0626956fc3

View File

@@ -117,6 +117,10 @@ KNOWN_CONTEXT_WINDOWS: dict[str, int] = {
"gpt-5.6-sol": 1050000,
"gpt-5.6-terra": 1050000,
"gpt-6-astra": 1050000,
"gpt-6-luna": 1050000,
"gpt-6-sol": 1050000,
"gpt-6.1-sol": 1050000,
"gpt-6.1-terra": 1050000,
"kimi-k2.6": 262144,
"kimi-k2.7-code": 262144,
"kimi-k2.7-code-highspeed": 262144,