Fix intel mac build

Make sure we're building an x86 ext_server lib when cross-compiling
This commit is contained in:
Daniel Hiltgen
2024-01-13 14:46:34 -08:00
parent 288ef8ff95
commit 2ecb247276
2 changed files with 4 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ func newDynExtServer(library, model string, adapters, projectors []string, opts
updatePath(filepath.Dir(library))
libPath := C.CString(library)
defer C.free(unsafe.Pointer(libPath))
resp := newExtServerResp(128)
resp := newExtServerResp(512)
defer freeExtServerResp(resp)
var srv C.struct_dynamic_llama_server
C.dyn_init(libPath, &srv, &resp)