mirror of
https://github.com/mudler/LocalAI.git
synced 2026-01-17 07:59:38 -06:00
fix(gallery agent): fixups
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
4
.github/gallery-agent/main.go
vendored
4
.github/gallery-agent/main.go
vendored
@@ -134,7 +134,7 @@ func main() {
|
||||
// Continue with original result if selection fails
|
||||
models = result.Models
|
||||
}
|
||||
} else {
|
||||
} else if len(result.Models) == 1 {
|
||||
models = result.Models
|
||||
fmt.Println("Only one model found, using it directly")
|
||||
}
|
||||
@@ -325,7 +325,7 @@ func searchAndProcessModels(searchTerm string, limit int, quantization string) (
|
||||
outputBuilder.WriteString(fmt.Sprintf(" README Content Preview: %s\n",
|
||||
processedModel.ReadmeContentPreview))
|
||||
} else {
|
||||
continue
|
||||
fmt.Printf(" Warning: Failed to get real readme: %v\n", err)
|
||||
}
|
||||
fmt.Println("Real readme got", readmeContent)
|
||||
|
||||
|
||||
4
.github/workflows/gallery-agent.yaml
vendored
4
.github/workflows/gallery-agent.yaml
vendored
@@ -49,12 +49,12 @@ jobs:
|
||||
PATH="$PATH:$HOME/go/bin" make protogen-go
|
||||
- uses: mudler/localai-github-action@v1.1
|
||||
with:
|
||||
model: 'qwen3-4b'
|
||||
model: 'https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507'
|
||||
|
||||
- name: Run gallery agent
|
||||
env:
|
||||
#OPENAI_MODEL: ${{ secrets.OPENAI_MODEL }}
|
||||
OPENAI_MODE: qwen3-4b
|
||||
OPENAI_MODE: Qwen3-4B-Instruct-2507
|
||||
OPENAI_BASE_URL: "http://localhost:8080"
|
||||
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
|
||||
#OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}
|
||||
|
||||
Reference in New Issue
Block a user