summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile4
-rw-r--r--bot.go10
-rw-r--r--extra/audio.go4
-rw-r--r--go.mod2
-rw-r--r--llm.go2
-rw-r--r--main_test.go2
-rw-r--r--models/models.go2
-rw-r--r--pngmeta/altwriter.go4
-rw-r--r--pngmeta/metareader.go2
-rw-r--r--pngmeta/metareader_test.go2
-rw-r--r--rag/main.go6
-rw-r--r--server.go2
-rw-r--r--session.go2
-rw-r--r--storage/memory.go2
-rw-r--r--storage/storage.go2
-rw-r--r--storage/storage_test.go2
-rw-r--r--storage/vector.go2
-rw-r--r--tables.go6
-rw-r--r--tools.go2
-rw-r--r--tui.go6
21 files changed, 34 insertions, 33 deletions
diff --git a/.gitignore b/.gitignore
index b980d4e..6ec208c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@ sysprompts/*
history_bak/
.aider*
tags
+gf-lt
diff --git a/Makefile b/Makefile
index 4e96ed5..87304cc 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/bot.go b/bot.go
index f3ceb69..0ea2a11 100644
--- a/bot.go
+++ b/bot.go
@@ -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"
diff --git a/go.mod b/go.mod
index 48c15cd..cc1e743 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module elefant
+module gf-lt
go 1.23.2
diff --git a/llm.go b/llm.go
index 40ddd87..3307467 100644
--- a/llm.go
+++ b/llm.go
@@ -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"
diff --git a/server.go b/server.go
index 5a1a1c3..5654855 100644
--- a/server.go
+++ b/server.go
@@ -1,7 +1,7 @@
package main
import (
- "elefant/config"
+ "gf-lt/config"
"encoding/json"
"fmt"
"net/http"
diff --git a/session.go b/session.go
index 8ffabc2..dbfa645 100644
--- a/session.go
+++ b/session.go
@@ -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"
diff --git a/tables.go b/tables.go
index 5685929..0f22321 100644
--- a/tables.go
+++ b/tables.go
@@ -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"
diff --git a/tools.go b/tools.go
index 626aa02..fe95ce5 100644
--- a/tools.go
+++ b/tools.go
@@ -1,7 +1,7 @@
package main
import (
- "elefant/models"
+ "gf-lt/models"
"fmt"
"regexp"
"strings"
diff --git a/tui.go b/tui.go
index df42ea0..43df360 100644
--- a/tui.go
+++ b/tui.go
@@ -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"