-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove deprecated GPTGenerator and GPTChatGenerator (#7125)
* remove deprecated GPTGenerator and GPTChatGenerator * remove unused import
- Loading branch information
1 parent
ba49905
commit 22e9def
Showing
5 changed files
with
7 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
from haystack.components.generators.hugging_face_local import HuggingFaceLocalGenerator | ||
from haystack.components.generators.hugging_face_tgi import HuggingFaceTGIGenerator | ||
from haystack.components.generators.openai import OpenAIGenerator, GPTGenerator | ||
from haystack.components.generators.openai import OpenAIGenerator | ||
from haystack.components.generators.azure import AzureOpenAIGenerator | ||
|
||
__all__ = [ | ||
"HuggingFaceLocalGenerator", | ||
"HuggingFaceTGIGenerator", | ||
"OpenAIGenerator", | ||
"GPTGenerator", | ||
"AzureOpenAIGenerator", | ||
] | ||
__all__ = ["HuggingFaceLocalGenerator", "HuggingFaceTGIGenerator", "OpenAIGenerator", "AzureOpenAIGenerator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
from haystack.components.generators.chat.hugging_face_local import HuggingFaceLocalChatGenerator | ||
from haystack.components.generators.chat.hugging_face_tgi import HuggingFaceTGIChatGenerator | ||
from haystack.components.generators.chat.openai import OpenAIChatGenerator, GPTChatGenerator | ||
from haystack.components.generators.chat.openai import OpenAIChatGenerator | ||
from haystack.components.generators.chat.azure import AzureOpenAIChatGenerator | ||
|
||
|
||
__all__ = [ | ||
"HuggingFaceLocalChatGenerator", | ||
"HuggingFaceTGIChatGenerator", | ||
"OpenAIChatGenerator", | ||
"GPTChatGenerator", | ||
"AzureOpenAIChatGenerator", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
upgrade: | ||
- | | ||
Removed the deprecated GPTGenerator and GPTChatGenerator components. Use OpenAIGenerator and OpenAIChatGeneratornotes instead. |