mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 21:38:01 +00:00
rework llm
This commit is contained in:
parent
904061c243
commit
afd9ad0560
61 changed files with 5882 additions and 2074 deletions
|
@ -12,14 +12,14 @@ import (
|
|||
"github.com/golang-migrate/migrate/v4/database/sqlite3"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
|
||||
"github.com/kujtimiihoxha/termai/internal/config"
|
||||
"github.com/kujtimiihoxha/termai/internal/logging"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
var log = logging.Get()
|
||||
|
||||
func Connect() (*sql.DB, error) {
|
||||
dataDir := viper.GetString("data.dir")
|
||||
dataDir := config.Get().Data.Directory
|
||||
if dataDir == "" {
|
||||
return nil, fmt.Errorf("data.dir is not set")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue