Skip to content

Commit

Permalink
use env var to determine ollama model
Browse files Browse the repository at this point in the history
  • Loading branch information
ili16 committed Jan 26, 2024
1 parent c4975de commit 1fdfa08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ollama/ollama.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CreateEmbedding(prompt string) ([]float32, error) {
url := os.Getenv("OLLAMA_URL") + "/api/embeddings"

data := map[string]interface{}{
"model": "codellama:13b-instruct",
"model": os.Getenv("OLLAMA_MODEL"),
"prompt": prompt,
}

Expand Down

0 comments on commit 1fdfa08

Please sign in to comment.