|
17 | 17 |
|
18 | 18 | from .... import types as genai_types |
19 | 19 | from ... import pytest_helper |
| 20 | +from .. import model_names |
20 | 21 |
|
21 | 22 |
|
22 | 23 | test_table: list[pytest_helper.TestTableItem] = [ |
23 | 24 | pytest_helper.TestTableItem( |
24 | 25 | name='test_generate_content', |
25 | 26 | parameters=genai_types._GenerateContentParameters( |
26 | | - model='gemini-2.5-flash', |
| 27 | + model=model_names.MODEL_FLASH, |
27 | 28 | contents='The quick brown fox jumps over the lazy dog.', |
28 | 29 | ), |
29 | 30 | ), |
30 | 31 | pytest_helper.TestTableItem( |
31 | 32 | name='test_generate_content_with_config_schema', |
32 | 33 | parameters=genai_types._GenerateContentParameters( |
33 | | - model='gemini-2.5-flash', |
| 34 | + model=model_names.MODEL_FLASH, |
34 | 35 | contents='Return a summary of the passage.', |
35 | 36 | config={'response_mime_type': 'application/json', 'response_schema': {'type': 'OBJECT', 'properties': {'summary': {'type': 'STRING'}}}}, |
36 | 37 | ), |
|
39 | 40 | pytest_helper.TestTableItem( |
40 | 41 | name='test_generate_content_with_config_json_schema', |
41 | 42 | parameters=genai_types._GenerateContentParameters( |
42 | | - model='gemini-2.5-flash', |
| 43 | + model=model_names.MODEL_FLASH, |
43 | 44 | contents='Return a JSON summary.', |
44 | 45 | config={'response_mime_type': 'application/json', 'response_json_schema': {'type': 'object', 'properties': {'summary': {'type': 'string'}}}}, |
45 | 46 | ), |
|
0 commit comments