Skip to content

Commit f94989e

Browse files
committed
minor #799 [Platform] Sync Model Catalogs used in Azure with main bridges (chr-hertel)
This PR was merged into the main branch. Discussion ---------- [Platform] Sync Model Catalogs used in Azure with main bridges | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | | License | MIT Couldn't use newer OpenAI models with Azure bridge, but didn't want to copy&paste the OpenAi catalog. I know that this is creating coupling between the bridges, but that decoupling is also messy. Better solution later could be to merge catalogs in azure depending on existence of classes of other bridges => after decoupling. Commits ------- effdc2e Sync Model Catalogs used in Azure with main bridges
2 parents bc7036a + effdc2e commit f94989e

File tree

7 files changed

+6
-175
lines changed

7 files changed

+6
-175
lines changed

src/ai-bundle/config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use Symfony\AI\Platform\Bridge\Anthropic\Contract\AnthropicContract;
3131
use Symfony\AI\Platform\Bridge\Anthropic\ModelCatalog as AnthropicModelCatalog;
3232
use Symfony\AI\Platform\Bridge\Anthropic\TokenOutputProcessor as AnthropicTokenOutputProcessor;
33-
use Symfony\AI\Platform\Bridge\Azure\Meta\ModelCatalog as AzureMetaModelCatalog;
3433
use Symfony\AI\Platform\Bridge\Azure\OpenAi\ModelCatalog as AzureOpenAiModelCatalog;
3534
use Symfony\AI\Platform\Bridge\Cerebras\ModelCatalog as CerebrasModelCatalog;
3635
use Symfony\AI\Platform\Bridge\DeepSeek\ModelCatalog as DeepSeekModelCatalog;
@@ -41,6 +40,7 @@
4140
use Symfony\AI\Platform\Bridge\Gemini\TokenOutputProcessor as GeminiTokenOutputProcessor;
4241
use Symfony\AI\Platform\Bridge\HuggingFace\ModelCatalog as HuggingFaceModelCatalog;
4342
use Symfony\AI\Platform\Bridge\LmStudio\ModelCatalog as LmStudioModelCatalog;
43+
use Symfony\AI\Platform\Bridge\Meta\ModelCatalog as AzureMetaModelCatalog;
4444
use Symfony\AI\Platform\Bridge\Mistral\ModelCatalog as MistralModelCatalog;
4545
use Symfony\AI\Platform\Bridge\Mistral\TokenOutputProcessor as MistralTokenOutputProcessor;
4646
use Symfony\AI\Platform\Bridge\Ollama\Contract\OllamaContract;

src/platform/src/Bridge/Azure/Meta/PlatformFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\AI\Platform\Bridge\Azure\Meta;
1313

14+
use Symfony\AI\Platform\Bridge\Meta\ModelCatalog;
1415
use Symfony\AI\Platform\Contract;
1516
use Symfony\AI\Platform\ModelCatalog\ModelCatalogInterface;
1617
use Symfony\AI\Platform\Platform;

src/platform/src/Bridge/Azure/OpenAi/ModelCatalog.php

Lines changed: 0 additions & 125 deletions
This file was deleted.

src/platform/src/Bridge/Azure/OpenAi/PlatformFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\AI\Platform\Bridge\OpenAi\Embeddings;
1515
use Symfony\AI\Platform\Bridge\OpenAi\Gpt;
16+
use Symfony\AI\Platform\Bridge\OpenAi\ModelCatalog;
1617
use Symfony\AI\Platform\Bridge\OpenAi\Whisper;
1718
use Symfony\AI\Platform\Bridge\OpenAi\Whisper\AudioNormalizer;
1819
use Symfony\AI\Platform\Contract;

src/platform/src/Bridge/Azure/Meta/ModelCatalog.php renamed to src/platform/src/Bridge/Meta/ModelCatalog.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\AI\Platform\Bridge\Azure\Meta;
12+
namespace Symfony\AI\Platform\Bridge\Meta;
1313

14-
use Symfony\AI\Platform\Bridge\Meta\Llama;
1514
use Symfony\AI\Platform\Capability;
1615
use Symfony\AI\Platform\ModelCatalog\AbstractModelCatalog;
1716

src/platform/tests/Bridge/Azure/OpenAi/ModelCatalogTest.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/platform/tests/Bridge/Azure/Meta/ModelCatalogTest.php renamed to src/platform/tests/Bridge/Meta/ModelCatalogTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\AI\Platform\Tests\Bridge\Azure\Meta;
12+
namespace Symfony\AI\Platform\Tests\Bridge\Meta;
1313

14-
use Symfony\AI\Platform\Bridge\Azure\Meta\ModelCatalog;
1514
use Symfony\AI\Platform\Bridge\Meta\Llama;
15+
use Symfony\AI\Platform\Bridge\Meta\ModelCatalog;
1616
use Symfony\AI\Platform\Capability;
1717
use Symfony\AI\Platform\ModelCatalog\ModelCatalogInterface;
1818
use Symfony\AI\Platform\Test\ModelCatalogTestCase;

0 commit comments

Comments
 (0)