refactor(ml): drop mlx build tag, fix Taskfile build path

MLX serve backend now auto-enables on darwin/arm64.
Fixed stale cmd/app/main.go reference in Taskfile.

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-02-17 16:57:43 +00:00
parent a4ad18fa2a
commit 54b98e2d15
3 changed files with 5 additions and 5 deletions

View file

@ -3,4 +3,4 @@ version: '3'
tasks: tasks:
build: build:
cmds: cmds:
- go build -o build/bin/core cmd/app/main.go - go build -o build/bin/core .

View file

@ -1,8 +1,8 @@
//go:build !(darwin && arm64 && mlx) //go:build !(darwin && arm64)
package ml package ml
import "forge.lthn.ai/core/go/pkg/ml" import "forge.lthn.ai/core/go-ai/ml"
func createServeBackend() (ml.Backend, error) { func createServeBackend() (ml.Backend, error) {
return ml.NewHTTPBackend(apiURL, modelName), nil return ml.NewHTTPBackend(apiURL, modelName), nil

View file

@ -1,4 +1,4 @@
//go:build darwin && arm64 && mlx //go:build darwin && arm64
package ml package ml
@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"log/slog" "log/slog"
"forge.lthn.ai/core/go/pkg/ml" "forge.lthn.ai/core/go-ai/ml"
) )
func createServeBackend() (ml.Backend, error) { func createServeBackend() (ml.Backend, error) {