把opencode的免费模型上下文长度设置为1M的方法

在模型配置文件[~/.config/opencode/opencode.jsonc],这样配置一下

{
    "$schema": "opencode.ai/config.json",
    "provider": {
        "opencode": {
            "models": {
                "deepseek-v4-flash-free": {
                    "limit": {
                        "context": 1000000,
                        "output": 131072
                    },
                    "options": {
                        "reasoningEffort": "high",
                        "thinking": {
                            "type": "enabled",
                            "budgetTokens": 16000
                        }
                    }
                },
                "mimo-v2.5-free": {
                    "limit": {
                        "context": 1000000,
                        "output": 131072
                    },
                    "options": {
                        "reasoningEffort": "high",
                        "thinking": {
                            "type": "enabled",
                            "budgetTokens": 16000
                        }
                    }
                },
                "hy3-free": {
                    "limit": {
                        "context": 1000000,
                        "output": 131072
                    },
                    "options": {
                        "reasoningEffort": "high",
                        "thinking": {
                            "type": "enabled",
                            "budgetTokens": 16000
                        }
                    }
                }
            }
        }
    }
}