all: support openai-compatible models
The support is rather minimal at this point:
Only hard-coded models, only -unsafe, only -skabandaddr="".
The "shared" LLM package is strongly Claude-flavored.
We can fix all of this and more over time, if we are inspired to.
(Maybe we'll switch to https://github.com/maruel/genai?)
The goal for now is to get the rough structure in place.
I've rebased and rebuilt this more times than I care to remember.
diff --git a/claudetool/edit.go b/claudetool/edit.go
index df83139..50084b7 100644
--- a/claudetool/edit.go
+++ b/claudetool/edit.go
@@ -18,7 +18,7 @@
"path/filepath"
"strings"
- "sketch.dev/ant"
+ "sketch.dev/llm"
)
// Constants for the AnthropicEditTool
@@ -59,7 +59,7 @@
var fileHistory = make(map[string][]string)
// AnthropicEditTool is a tool for viewing, creating, and editing files
-var AnthropicEditTool = &ant.Tool{
+var AnthropicEditTool = &llm.Tool{
// Note that Type is model-dependent, and would be different for Claude 3.5, for example.
Type: "text_editor_20250124",
Name: editName,