Skip to content

Commit dc5acd9

Browse files
committed
Remove unused httpx
1 parent 5b455f4 commit dc5acd9

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

haystack/components/embedders/azure_document_embedder.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66
from typing import Any, Dict, List, Optional
77

8-
import httpx
98
from openai.lib.azure import AsyncAzureOpenAI, AzureADTokenProvider, AzureOpenAI
109

1110
from haystack import component, default_from_dict, default_to_dict, logging

haystack/components/embedders/azure_text_embedder.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66
from typing import Any, Dict, Optional
77

8-
import httpx
98
from openai.lib.azure import AsyncAzureOpenAI, AzureADTokenProvider, AzureOpenAI
109

1110
from haystack import component, default_from_dict, default_to_dict

haystack/components/generators/chat/openai.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from datetime import datetime
88
from typing import Any, Dict, List, Optional, Union
99

10-
import httpx
1110
from openai import AsyncOpenAI, AsyncStream, OpenAI, Stream
1211
from openai.types.chat import ChatCompletion, ChatCompletionChunk, ChatCompletionMessage
1312
from openai.types.chat.chat_completion import Choice

haystack/utils/http_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from typing import Any, Dict, Optional, Union
5+
from typing import Any, Dict, Optional
66

77
import httpx
88

0 commit comments

Comments
 (0)