Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix build errors
Bruce MacDonald09d8bf6730b5
diff --git a/llama/llama.go b/llama/llama.goindex 2c7df1da7..f8c897d4a 100644--- a/llama/llama.go+++ b/llama/llama.go@@ -416,7 +416,7 @@ func (llm *LLM) Embedding(input string) ([]float64, error) {return nil, errors.New("llama: embedding not enabled")}- tokens := llm.tokenize(input)+ tokens := llm.Encode(input)if tokens == nil {return nil, errors.New("llama: tokenize embedding")}diff --git a/server/routes.go b/server/routes.goindex e5903a861..9182de3b8 100644--- a/server/routes.go+++ b/server/routes.go@@ -87,13 +87,13 @@ func GenerateHandler(c *gin.Context) {}if opts.NumKeep < 0 {- promptWithSystem, err := model.Prompt(api.GenerateRequest{})+ promptWithSystem, err := model.Prompt(api.GenerateRequest{}, "")if err != nil {c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})return}- promptNoSystem, err := model.Prompt(api.GenerateRequest{Context: []int{0}})+ promptNoSystem, err := model.Prompt(api.GenerateRequest{Context: []int{0}}, "")if err != nil {c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})return