summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-16 14:24:50 +0300
committerPaul Buetow <paul@buetow.org>2025-08-16 14:24:50 +0300
commit81a0c72135e47fdd30ca2c11a3300abb3e8758af (patch)
tree09c6536cf601d5e5f722048e32fd817ec045af7b
parentec0cfae0595f1bac6ff69f8b06fa287e0a6f76d4 (diff)
Update
-rw-r--r--dotfiles/fish/conf.d/ai.fish4
1 files changed, 4 insertions, 0 deletions
diff --git a/dotfiles/fish/conf.d/ai.fish b/dotfiles/fish/conf.d/ai.fish
index d72867d..87b2b1e 100644
--- a/dotfiles/fish/conf.d/ai.fish
+++ b/dotfiles/fish/conf.d/ai.fish
@@ -9,6 +9,9 @@ abbr -a aic 'aichat -e'
set -gx COPILOT_MODEL gpt-5 # can be changed with aimodels function
set -gx HANDLER copilot
+# Used for Hexai
+set -gx OPENAI_MODEL $COPILOT_MODEL
+
# TODO: also reconfigure aichat tool using this function
function aimodels
# nvim for the ai tool wrapper so i can use Copilot Chat from the command line.
@@ -25,6 +28,7 @@ claude-4.0-sonnet
gemini-2.5-pro" >~/.aimodels
set -gx COPILOT_MODEL (cat ~/.aimodels | fzf)
+ set -gx OPENAI_MODEL $COPILOT_MODEL
if test -d $COPILOT_CHAT_DIR
set -l model_config "$COPILOT_CHAT_DIR/config-$COPILOT_MODEL.lua"