Upgrade fantasy to v0.17.1 and fix Codex API instructions parameter

- Upgrade charm.land/fantasy from v0.16.0 to v0.17.1
- Add buildCodexProviderOptions() to pass system prompt as 'instructions'
- The Codex API requires instructions as a top-level field, not as system message
- Set Store=false to prevent server-side conversation storage
- Use ResponsesProviderOptions.Instructions for system prompt
This commit is contained in:
Ed Zynda
2026-03-26 15:00:10 +03:00
parent d06641dc0a
commit f03625d6e5
3 changed files with 38 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ go 1.26.1
require (
charm.land/bubbles/v2 v2.0.0
charm.land/bubbletea/v2 v2.0.2
charm.land/fantasy v0.16.0
charm.land/fantasy v0.17.1
charm.land/huh/v2 v2.0.3
charm.land/lipgloss/v2 v2.0.2
github.com/alecthomas/chroma/v2 v2.23.1