# v0.10.2 Release Notes

> v0.10.1 -> v0.10.2

## Summary

Fixes invalid API requests to OpenAI reasoning models (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `gpt-4.1`) by conditionally omitting the `temperature` parameter, which these models do not support. Also adds configurable planner model selection and a makefile for common workflows.

<details>
<summary>翻譯</summary>
修正對 OpenAI 推理模型（`gpt-5`、`gpt-5-mini`、`gpt-5-nano`、`gpt-4.1`）發送請求時帶入不支援的 `temperature` 參數的問題。同時新增可設定的 planner 模型選擇機制與 makefile。
</details>

## Changes

### FIX
- Conditionally omit `temperature` from OpenAI requests for reasoning models that do not accept it (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `gpt-4.1`)
- Add `no_temperature` field to `ModelItem` and mark affected models in `openai.json`
- Add `SupportTemperature` helper to provider registry for centralized temperature gating

<details>
<summary>翻譯</summary>

- 對不支援 `temperature` 的 OpenAI 推理模型略過該參數，修正 API 請求錯誤
- `ModelItem` 新增 `no_temperature` 欄位，並在 `openai.json` 標記受影響模型
- 新增 `SupportTemperature` 輔助函式至 provider registry，集中管理 temperature 判斷

</details>

### ADD
- Add `makefile` with targets: `discord`, `add`, `remove`, `planner`, `cli`, `run`
- Add `planner` CLI command to interactively select and persist the planner model
- Add `newAgentFromModel` helper to instantiate any provider agent by model name

<details>
<summary>翻譯</summary>

- 新增 `makefile`，包含 `discord`、`add`、`remove`、`planner`、`cli`、`run` 等常用指令
- 新增 `planner` CLI 指令，可互動式選擇並持久化 planner 模型
- 新增 `newAgentFromModel` 輔助函式，依模型名稱建立對應 provider agent

</details>

### UPDATE
- Read planner model from keychain in both CLI and Discord server startup, falling back to registry default
- CLI provider selector and remove selector now use `exit` instead of `Cancel`
- Update `.env.example` to remove hardcoded API key placeholders and add clarifying comments

<details>
<summary>翻譯</summary>

- CLI 與 Discord server 啟動時從 keychain 讀取 planner 模型，不存在時退回 registry 預設值
- CLI 選擇器改用 `exit` 取代 `Cancel`
- `.env.example` 移除硬編碼 API key 佔位符，補充說明註解

</details>

***

## Files Changed

| File | Status | Tag |
|------|--------|-----|
| `internal/agents/provider/openai/send.go` | Modified | FIX |
| `internal/agents/provider/provider.go` | Modified | FIX |
| `internal/agents/provider/embed/openai.json` | Modified | FIX |
| `makefile` | Added | ADD |
| `cmd/cli/addProvider.go` | Modified | ADD |
| `cmd/cli/getAgentRegistry.go` | Modified | ADD |
| `cmd/cli/main.go` | Modified | UPDATE |
| `cmd/cli/removeProvider.go` | Modified | UPDATE |
| `cmd/server/main.go` | Modified | UPDATE |
| `.env.example` | Modified | UPDATE |

***

Generated by [SKILL](https://github.com/pardnchiu/skill-version-generate)
