summaryrefslogtreecommitdiff
path: root/internal/hexaicli
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-02 14:06:43 +0200
committerPaul Buetow <paul@buetow.org>2026-03-02 14:06:43 +0200
commitae0a2c0fc9e7782b18a65de49e309f703c4bfe32 (patch)
treeb87bd6886d1ee3c9f9d9b151771b1b61036bf8f5 /internal/hexaicli
parent8fa31daeba7a6617f08027a5f9f68bb612587772 (diff)
llmutils: remove remaining default-model wrappers in callers (task 413)
Diffstat (limited to 'internal/hexaicli')
-rw-r--r--internal/hexaicli/run.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/hexaicli/run.go b/internal/hexaicli/run.go
index 4cb9e01..85a3fdd 100644
--- a/internal/hexaicli/run.go
+++ b/internal/hexaicli/run.go
@@ -95,7 +95,7 @@ func buildCLIRequest(entry appconfig.SurfaceConfig, provider string, cfg appconf
model = strings.TrimSpace(client.DefaultModel())
}
if model == "" {
- model = strings.TrimSpace(defaultModelForProvider(cfg, provider))
+ model = strings.TrimSpace(llmutils.DefaultModelForProvider(cfg, provider))
}
}
if entry.Model != "" {
@@ -128,10 +128,6 @@ func canonicalProvider(name string) string {
return llmutils.CanonicalProvider(name)
}
-func defaultModelForProvider(cfg appconfig.App, provider string) string {
- return llmutils.DefaultModelForProvider(cfg, provider)
-}
-
// Run executes the Hexai CLI behavior given arguments and I/O streams.
// It assumes flags have already been parsed by the caller.
func Run(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) error {