Skip to content

Commit 343438e

Browse files
author
Erick Friis
authored
community[patch]: deprecate community fireworks (#18544)
1 parent ca1d427 commit 343438e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

libs/community/langchain_community/chat_models/fireworks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
Union,
1111
)
1212

13+
from langchain_core._api.deprecation import deprecated
1314
from langchain_core.callbacks import (
1415
AsyncCallbackManagerForLLMRun,
1516
CallbackManagerForLLMRun,
@@ -78,6 +79,11 @@ def convert_dict_to_message(_dict: Any) -> BaseMessage:
7879
return ChatMessage(content=content, role=role)
7980

8081

82+
@deprecated(
83+
since="0.0.26",
84+
removal="0.2",
85+
alternative_import="langchain_fireworks.ChatFireworks",
86+
)
8187
class ChatFireworks(BaseChatModel):
8288
"""Fireworks Chat models."""
8389

libs/community/langchain_community/llms/fireworks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from concurrent.futures import ThreadPoolExecutor
33
from typing import Any, AsyncIterator, Callable, Dict, Iterator, List, Optional, Union
44

5+
from langchain_core._api.deprecation import deprecated
56
from langchain_core.callbacks import (
67
AsyncCallbackManagerForLLMRun,
78
CallbackManagerForLLMRun,
@@ -26,6 +27,11 @@ def _stream_response_to_generation_chunk(
2627
)
2728

2829

30+
@deprecated(
31+
since="0.0.26",
32+
removal="0.2",
33+
alternative_import="langchain_fireworks.Fireworks",
34+
)
2935
class Fireworks(BaseLLM):
3036
"""Fireworks models."""
3137

0 commit comments

Comments
 (0)