Skip to content

Commit 7da897a

Browse files
committed
feature #826 [Platform] Adds gpt-oss to Ollama ModelCatalog (leonexcc)
This PR was merged into the main branch. Discussion ---------- [Platform] Adds gpt-oss to Ollama ModelCatalog | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | None | License | MIT Adds the model gpt-oss to the ModelCatalog of Ollama. I know there is #766, but it is a draft and we can't us gpt-oss at the moment, since we get `Model "gpt-oss:20b" not found.` <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Update/add documentation as required (we can help!) - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 7fe50e0 Adds gpt-oss to Ollama ModelCatalog
2 parents 8fc14a0 + 7fe50e0 commit 7da897a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/platform/src/Bridge/Ollama/ModelCatalog.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ public function __construct(array $additionalModels = [])
3535
Capability::TOOL_CALLING,
3636
],
3737
],
38+
'gpt-oss' => [
39+
'class' => Ollama::class,
40+
'capabilities' => [
41+
Capability::INPUT_MESSAGES,
42+
Capability::OUTPUT_TEXT,
43+
Capability::OUTPUT_STRUCTURED,
44+
Capability::TOOL_CALLING,
45+
],
46+
],
3847
'llama3.1' => [
3948
'class' => Ollama::class,
4049
'capabilities' => [

src/platform/tests/Bridge/Ollama/ModelCatalogTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ final class ModelCatalogTest extends ModelCatalogTestCase
2525
public static function modelsProvider(): iterable
2626
{
2727
yield 'deepseek-r1' => ['deepseek-r1', Ollama::class, [Capability::INPUT_MESSAGES, Capability::OUTPUT_TEXT, Capability::OUTPUT_STRUCTURED, Capability::TOOL_CALLING]];
28+
yield 'gpt-oss' => ['gpt-oss', Ollama::class, [Capability::INPUT_MESSAGES, Capability::OUTPUT_TEXT, Capability::OUTPUT_STRUCTURED, Capability::TOOL_CALLING]];
2829
yield 'llama3.1' => ['llama3.1', Ollama::class, [Capability::INPUT_MESSAGES, Capability::OUTPUT_TEXT, Capability::OUTPUT_STRUCTURED, Capability::TOOL_CALLING]];
2930
yield 'llama3.2' => ['llama3.2', Ollama::class, [Capability::INPUT_MESSAGES, Capability::OUTPUT_TEXT, Capability::OUTPUT_STRUCTURED, Capability::TOOL_CALLING]];
3031
yield 'llama3' => ['llama3', Ollama::class, [Capability::INPUT_MESSAGES, Capability::OUTPUT_TEXT, Capability::OUTPUT_STRUCTURED, Capability::TOOL_CALLING]];

0 commit comments

Comments
 (0)