Skip to content

Commit a312dda

Browse files
committed
bug #1007 [Platform][Ollama] Wrong method for model selection (lochmueller)
This PR was merged into the main branch. Discussion ---------- [Platform][Ollama] Wrong method for model selection | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | Fix #1005 | License | MIT Fix the method of the selection of the models from POST to GET. https://docs.ollama.com/api/tags Commits ------- 59b3265 fix: Wrong method for Ollama model selection
2 parents 09e5028 + 59b3265 commit a312dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/src/Bridge/Ollama/OllamaApiCatalog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getModel(string $modelName): Ollama
5858

5959
public function getModels(): array
6060
{
61-
$response = $this->httpClient->request('POST', \sprintf('%s/api/tags', $this->host));
61+
$response = $this->httpClient->request('GET', \sprintf('%s/api/tags', $this->host));
6262

6363
$models = $response->toArray();
6464

0 commit comments

Comments
 (0)