diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | bot.go | 10 | ||||
-rw-r--r-- | extra/audio.go | 4 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | llm.go | 2 | ||||
-rw-r--r-- | main_test.go | 2 | ||||
-rw-r--r-- | models/models.go | 2 | ||||
-rw-r--r-- | pngmeta/altwriter.go | 4 | ||||
-rw-r--r-- | pngmeta/metareader.go | 2 | ||||
-rw-r--r-- | pngmeta/metareader_test.go | 2 | ||||
-rw-r--r-- | rag/main.go | 6 | ||||
-rw-r--r-- | server.go | 2 | ||||
-rw-r--r-- | session.go | 2 | ||||
-rw-r--r-- | storage/memory.go | 2 | ||||
-rw-r--r-- | storage/storage.go | 2 | ||||
-rw-r--r-- | storage/storage_test.go | 2 | ||||
-rw-r--r-- | storage/vector.go | 2 | ||||
-rw-r--r-- | tables.go | 6 | ||||
-rw-r--r-- | tools.go | 2 | ||||
-rw-r--r-- | tui.go | 6 |
21 files changed, 34 insertions, 33 deletions
@@ -10,3 +10,4 @@ sysprompts/* history_bak/ .aider* tags +gf-lt @@ -1,10 +1,10 @@ .PHONY: setconfig run lint run: setconfig - go build -o elefant && ./elefant + go build -o gf-lt && ./gf-lt server: setconfig - go build -o elefant && ./elefant -port 3333 + go build -o gf-lt && ./gf-lt -port 3333 setconfig: find config.toml &>/dev/null || cp config.example.toml config.toml @@ -4,11 +4,11 @@ import ( "bufio" "bytes" "context" - "elefant/config" - "elefant/extra" - "elefant/models" - "elefant/rag" - "elefant/storage" + "gf-lt/config" + "gf-lt/extra" + "gf-lt/models" + "gf-lt/rag" + "gf-lt/storage" "encoding/json" "fmt" "io" diff --git a/extra/audio.go b/extra/audio.go index 73d75ed..11021f9 100644 --- a/extra/audio.go +++ b/extra/audio.go @@ -2,8 +2,8 @@ package extra import ( "bytes" - "elefant/config" - "elefant/models" + "gf-lt/config" + "gf-lt/models" "encoding/json" "fmt" "io" @@ -1,4 +1,4 @@ -module elefant +module gf-lt go 1.23.2 @@ -2,7 +2,7 @@ package main import ( "bytes" - "elefant/models" + "gf-lt/models" "encoding/json" "io" "strings" diff --git a/main_test.go b/main_test.go index 0046ca2..fb0a774 100644 --- a/main_test.go +++ b/main_test.go @@ -1,7 +1,7 @@ package main import ( - "elefant/models" + "gf-lt/models" "fmt" "strings" "testing" diff --git a/models/models.go b/models/models.go index 12311ff..2e2ef34 100644 --- a/models/models.go +++ b/models/models.go @@ -1,7 +1,7 @@ package models import ( - "elefant/config" + "gf-lt/config" "fmt" "strings" ) diff --git a/pngmeta/altwriter.go b/pngmeta/altwriter.go index b031ba7..206b563 100644 --- a/pngmeta/altwriter.go +++ b/pngmeta/altwriter.go @@ -2,7 +2,7 @@ package pngmeta import ( "bytes" - "elefant/models" + "gf-lt/models" "encoding/base64" "encoding/binary" "encoding/json" @@ -30,7 +30,7 @@ func WriteToPng(metadata *models.CharCardSpec, sourcePath, outfile string) error } base64Data := base64.StdEncoding.EncodeToString(jsonData) embedData := PngEmbed{ - Key: "elefant", // Replace with appropriate key constant + Key: "gf-lt", // Replace with appropriate key constant Value: base64Data, } var outputBuffer bytes.Buffer diff --git a/pngmeta/metareader.go b/pngmeta/metareader.go index c396b4e..369345a 100644 --- a/pngmeta/metareader.go +++ b/pngmeta/metareader.go @@ -2,7 +2,7 @@ package pngmeta import ( "bytes" - "elefant/models" + "gf-lt/models" "encoding/base64" "encoding/json" "errors" diff --git a/pngmeta/metareader_test.go b/pngmeta/metareader_test.go index c075865..f88de06 100644 --- a/pngmeta/metareader_test.go +++ b/pngmeta/metareader_test.go @@ -2,7 +2,7 @@ package pngmeta import ( "bytes" - "elefant/models" + "gf-lt/models" "encoding/base64" "encoding/binary" "encoding/json" diff --git a/rag/main.go b/rag/main.go index f3028b4..b7e0c00 100644 --- a/rag/main.go +++ b/rag/main.go @@ -2,9 +2,9 @@ package rag import ( "bytes" - "elefant/config" - "elefant/models" - "elefant/storage" + "gf-lt/config" + "gf-lt/models" + "gf-lt/storage" "encoding/json" "errors" "fmt" @@ -1,7 +1,7 @@ package main import ( - "elefant/config" + "gf-lt/config" "encoding/json" "fmt" "net/http" @@ -1,7 +1,7 @@ package main import ( - "elefant/models" + "gf-lt/models" "encoding/json" "errors" "fmt" diff --git a/storage/memory.go b/storage/memory.go index c9fc853..406182f 100644 --- a/storage/memory.go +++ b/storage/memory.go @@ -1,6 +1,6 @@ package storage -import "elefant/models" +import "gf-lt/models" type Memories interface { Memorise(m *models.Memory) (*models.Memory, error) diff --git a/storage/storage.go b/storage/storage.go index f759700..7911e13 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -1,7 +1,7 @@ package storage import ( - "elefant/models" + "gf-lt/models" "log/slog" _ "github.com/glebarez/go-sqlite" diff --git a/storage/storage_test.go b/storage/storage_test.go index 07dd3e7..a1c4cf4 100644 --- a/storage/storage_test.go +++ b/storage/storage_test.go @@ -1,7 +1,7 @@ package storage import ( - "elefant/models" + "gf-lt/models" "fmt" "log/slog" "os" diff --git a/storage/vector.go b/storage/vector.go index 5e9069c..71005e4 100644 --- a/storage/vector.go +++ b/storage/vector.go @@ -1,7 +1,7 @@ package storage import ( - "elefant/models" + "gf-lt/models" "errors" "fmt" "unsafe" @@ -7,9 +7,9 @@ import ( "strings" "time" - "elefant/models" - "elefant/pngmeta" - "elefant/rag" + "gf-lt/models" + "gf-lt/pngmeta" + "gf-lt/rag" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" @@ -1,7 +1,7 @@ package main import ( - "elefant/models" + "gf-lt/models" "fmt" "regexp" "strings" @@ -1,9 +1,9 @@ package main import ( - "elefant/extra" - "elefant/models" - "elefant/pngmeta" + "gf-lt/extra" + "gf-lt/models" + "gf-lt/pngmeta" "fmt" "image" _ "image/jpeg" |