99
1010from tests .utils import assert_matches_type
1111from llama_stack_client import LlamaStackClient , AsyncLlamaStackClient
12- from llama_stack_client .types import EmbeddingsResponse
12+ from llama_stack_client .types import CreateEmbeddingsResponse
1313
1414base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
1515
@@ -23,7 +23,7 @@ def test_method_create(self, client: LlamaStackClient) -> None:
2323 input = "string" ,
2424 model = "model" ,
2525 )
26- assert_matches_type (EmbeddingsResponse , embedding , path = ["response" ])
26+ assert_matches_type (CreateEmbeddingsResponse , embedding , path = ["response" ])
2727
2828 @parametrize
2929 def test_method_create_with_all_params (self , client : LlamaStackClient ) -> None :
@@ -34,7 +34,7 @@ def test_method_create_with_all_params(self, client: LlamaStackClient) -> None:
3434 encoding_format = "encoding_format" ,
3535 user = "user" ,
3636 )
37- assert_matches_type (EmbeddingsResponse , embedding , path = ["response" ])
37+ assert_matches_type (CreateEmbeddingsResponse , embedding , path = ["response" ])
3838
3939 @parametrize
4040 def test_raw_response_create (self , client : LlamaStackClient ) -> None :
@@ -46,7 +46,7 @@ def test_raw_response_create(self, client: LlamaStackClient) -> None:
4646 assert response .is_closed is True
4747 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
4848 embedding = response .parse ()
49- assert_matches_type (EmbeddingsResponse , embedding , path = ["response" ])
49+ assert_matches_type (CreateEmbeddingsResponse , embedding , path = ["response" ])
5050
5151 @parametrize
5252 def test_streaming_response_create (self , client : LlamaStackClient ) -> None :
@@ -58,7 +58,7 @@ def test_streaming_response_create(self, client: LlamaStackClient) -> None:
5858 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
5959
6060 embedding = response .parse ()
61- assert_matches_type (EmbeddingsResponse , embedding , path = ["response" ])
61+ assert_matches_type (CreateEmbeddingsResponse , embedding , path = ["response" ])
6262
6363 assert cast (Any , response .is_closed ) is True
6464
@@ -72,7 +72,7 @@ async def test_method_create(self, async_client: AsyncLlamaStackClient) -> None:
7272 input = "string" ,
7373 model = "model" ,
7474 )
75- assert_matches_type (EmbeddingsResponse , embedding , path = ["response" ])
75+ assert_matches_type (CreateEmbeddingsResponse , embedding , path = ["response" ])
7676
7777 @parametrize
7878 async def test_method_create_with_all_params (self , async_client : AsyncLlamaStackClient ) -> None :
@@ -83,7 +83,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncLlamaStack
8383 encoding_format = "encoding_format" ,
8484 user = "user" ,
8585 )
86- assert_matches_type (EmbeddingsResponse , embedding , path = ["response" ])
86+ assert_matches_type (CreateEmbeddingsResponse , embedding , path = ["response" ])
8787
8888 @parametrize
8989 async def test_raw_response_create (self , async_client : AsyncLlamaStackClient ) -> None :
@@ -95,7 +95,7 @@ async def test_raw_response_create(self, async_client: AsyncLlamaStackClient) ->
9595 assert response .is_closed is True
9696 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
9797 embedding = await response .parse ()
98- assert_matches_type (EmbeddingsResponse , embedding , path = ["response" ])
98+ assert_matches_type (CreateEmbeddingsResponse , embedding , path = ["response" ])
9999
100100 @parametrize
101101 async def test_streaming_response_create (self , async_client : AsyncLlamaStackClient ) -> None :
@@ -107,6 +107,6 @@ async def test_streaming_response_create(self, async_client: AsyncLlamaStackClie
107107 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
108108
109109 embedding = await response .parse ()
110- assert_matches_type (EmbeddingsResponse , embedding , path = ["response" ])
110+ assert_matches_type (CreateEmbeddingsResponse , embedding , path = ["response" ])
111111
112112 assert cast (Any , response .is_closed ) is True
0 commit comments