From 0428594206ca24e705a7f8faad836f302cfc4018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sat, 14 Dec 2024 13:08:57 +0100 Subject: [PATCH 1/4] Update test_llm.py --- tests/test_llm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_llm.py b/tests/test_llm.py index 4b71c0324..4343d69dd 100644 --- a/tests/test_llm.py +++ b/tests/test_llm.py @@ -81,6 +81,7 @@ def test_hashable_typeinfo(): LLMS: list[Callable[[], llm.LLM]] = [ pytest.param(lambda: openai.LLM(), id="openai"), + pytest.param(lambda: openai.LLM.with_azure(), id="openai.with_azure"), # lambda: openai.beta.AssistantLLM( # assistant_opts=openai.beta.AssistantOptions( # create_options=openai.beta.AssistantCreateOptions( From c81829344a86778ff2af10f86da3c6bb8bb15ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sat, 14 Dec 2024 13:14:08 +0100 Subject: [PATCH 2/4] Update tests.yml --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 302e5ad71..1ad001cb3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -122,6 +122,7 @@ jobs: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} ASSEMBLYAI_API_KEY: ${{ secrets.ASSEMBLYAI_API_KEY }} + AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} FAL_KEY: ${{ secrets.FAL_KEY }} GOOGLE_APPLICATION_CREDENTIALS: google.json PYTEST_ADDOPTS: "--color=yes" From 459c0dd9c9beb39ad304a90ecddfc60a0462c60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sat, 14 Dec 2024 13:19:23 +0100 Subject: [PATCH 3/4] Update tests.yml --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1ad001cb3..34f34643c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -124,6 +124,7 @@ jobs: ASSEMBLYAI_API_KEY: ${{ secrets.ASSEMBLYAI_API_KEY }} AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} FAL_KEY: ${{ secrets.FAL_KEY }} + OPENAI_API_VERSION: "2024-05-01-preview" GOOGLE_APPLICATION_CREDENTIALS: google.json PYTEST_ADDOPTS: "--color=yes" working-directory: tests From 286cc551ca1fd1d276beab209e3f27e391d87296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sat, 14 Dec 2024 13:23:49 +0100 Subject: [PATCH 4/4] Update tests.yml --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 34f34643c..0d0b18e9e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -123,8 +123,9 @@ jobs: GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} ASSEMBLYAI_API_KEY: ${{ secrets.ASSEMBLYAI_API_KEY }} AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} + AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }} + OPENAI_API_VERSION: "2024-05-01-preview" # used by Azure FAL_KEY: ${{ secrets.FAL_KEY }} - OPENAI_API_VERSION: "2024-05-01-preview" GOOGLE_APPLICATION_CREDENTIALS: google.json PYTEST_ADDOPTS: "--color=yes" working-directory: tests