fixes to azure ai search init, samples (#5021)

This commit is contained in:
Eduard van Valkenburg
2026-04-01 11:59:52 +02:00
committed by GitHub
Unverified
parent e43fc8ccec
commit 2a8c3e2dcf
9 changed files with 333 additions and 53 deletions
@@ -7,6 +7,7 @@ import os
from unittest.mock import AsyncMock, MagicMock
import pytest
from agent_framework import SupportsGetEmbeddings
from agent_framework.exceptions import SettingNotFoundError
from openai.types import CreateEmbeddingResponse
from openai.types import Embedding as OpenAIEmbedding
@@ -44,6 +45,7 @@ def test_openai_construction_with_explicit_params() -> None:
api_key="test-key",
)
assert client.model == "text-embedding-3-small"
assert isinstance(client, SupportsGetEmbeddings)
def test_raw_openai_embedding_client_init_uses_explicit_parameters() -> None: