@@ -33,17 +33,10 @@ def _get_bytes_from_file(relative_path: str) -> bytes:
3333 return file .read ()
3434
3535test_table : list [pytest_helper .TestTableItem ] = [
36- pytest_helper .TestTableItem (
37- name = 'test_single_text' ,
38- parameters = types .EmbedContentParameters (
39- model = 'text-embedding-004' ,
40- contents = t .t_contents ('What is your name?' ),
41- ),
42- ),
4336 pytest_helper .TestTableItem (
4437 name = 'test_multi_texts_with_config' ,
4538 parameters = types .EmbedContentParameters (
46- model = 'text -embedding-004 ' ,
39+ model = 'gemini -embedding-001 ' ,
4740 contents = [
4841 t .t_content ('What is your name?' ),
4942 t .t_content ('I am a model.' ),
@@ -61,7 +54,7 @@ def _get_bytes_from_file(relative_path: str) -> bytes:
6154 pytest_helper .TestTableItem (
6255 name = 'test_single_text_with_mime_type_not_supported_in_mldev' ,
6356 parameters = types .EmbedContentParameters (
64- model = 'text -embedding-004 ' ,
57+ model = 'gemini -embedding-001 ' ,
6558 contents = t .t_contents ('What is your name?' ),
6659 config = {
6760 'output_dimensionality' : 10 ,
@@ -73,7 +66,7 @@ def _get_bytes_from_file(relative_path: str) -> bytes:
7366 pytest_helper .TestTableItem (
7467 name = 'test_single_text_with_auto_truncate_not_supported_in_mldev' ,
7568 parameters = types .EmbedContentParameters (
76- model = 'text -embedding-004 ' ,
69+ model = 'gemini -embedding-001 ' ,
7770 contents = t .t_contents ('What is your name?' ),
7871 config = {
7972 'output_dimensionality' : 10 ,
@@ -201,7 +194,7 @@ def _get_bytes_from_file(relative_path: str) -> bytes:
201194@pytest .mark .asyncio
202195async def test_async (client ):
203196 response = await client .aio .models .embed_content (
204- model = 'text -embedding-004 ' ,
197+ model = 'gemini -embedding-001 ' ,
205198 contents = 'What is your name?' ,
206199 config = {'output_dimensionality' : 10 },
207200 )
0 commit comments