|
40 | 40 | ],
|
41 | 41 | },
|
42 | 42 | )
|
43 |
| - aoai_config_list = autogen.config_list_from_json( |
44 |
| - OAI_CONFIG_LIST, |
45 |
| - file_location=KEY_LOC, |
46 |
| - filter_dict={"api_type": ["azure"], "tags": ["assistant"]}, |
47 |
| - ) |
| 43 | + # TODO: fix azure settings or remove it. |
| 44 | + # aoai_config_list = autogen.config_list_from_json( |
| 45 | + # OAI_CONFIG_LIST, |
| 46 | + # file_location=KEY_LOC, |
| 47 | + # filter_dict={"api_type": ["azure"], "tags": ["assistant"]}, |
| 48 | + # ) |
48 | 49 |
|
49 | 50 |
|
50 | 51 | @pytest.mark.skipif(
|
|
53 | 54 | )
|
54 | 55 | def test_config_list() -> None:
|
55 | 56 | assert len(openai_config_list) > 0
|
56 |
| - assert len(aoai_config_list) > 0 |
| 57 | + # TODO: fix azure settings or remove it. |
| 58 | + # assert len(aoai_config_list) > 0 |
57 | 59 |
|
58 | 60 |
|
59 | 61 | @pytest.mark.skipif(
|
60 | 62 | skip_openai,
|
61 | 63 | reason=reason,
|
62 | 64 | )
|
63 | 65 | def test_gpt_assistant_chat() -> None:
|
64 |
| - for gpt_config in [openai_config_list, aoai_config_list]: |
65 |
| - _test_gpt_assistant_chat({"config_list": gpt_config}) |
66 |
| - _test_gpt_assistant_chat(gpt_config[0]) |
| 66 | + _test_gpt_assistant_chat({"config_list": openai_config_list}) |
| 67 | + _test_gpt_assistant_chat(openai_config_list[0]) |
67 | 68 |
|
68 | 69 |
|
69 | 70 | def _test_gpt_assistant_chat(gpt_config) -> None:
|
@@ -135,8 +136,8 @@ def ask_ossinsight(question: str) -> str:
|
135 | 136 | reason=reason,
|
136 | 137 | )
|
137 | 138 | def test_get_assistant_instructions() -> None:
|
138 |
| - for gpt_config in [openai_config_list, aoai_config_list]: |
139 |
| - _test_get_assistant_instructions(gpt_config) |
| 139 | + _test_get_assistant_instructions(openai_config_list) |
| 140 | + # _test_get_assistant_instructions(aoai_config_list) |
140 | 141 |
|
141 | 142 |
|
142 | 143 | def _test_get_assistant_instructions(gpt_config) -> None:
|
@@ -164,8 +165,8 @@ def _test_get_assistant_instructions(gpt_config) -> None:
|
164 | 165 | reason=reason,
|
165 | 166 | )
|
166 | 167 | def test_gpt_assistant_instructions_overwrite() -> None:
|
167 |
| - for gpt_config in [openai_config_list, aoai_config_list]: |
168 |
| - _test_gpt_assistant_instructions_overwrite(gpt_config) |
| 168 | + _test_gpt_assistant_instructions_overwrite(openai_config_list) |
| 169 | + # _test_gpt_assistant_instructions_overwrite(aoai_config_list) |
169 | 170 |
|
170 | 171 |
|
171 | 172 | def _test_gpt_assistant_instructions_overwrite(gpt_config) -> None:
|
|
0 commit comments