Skip to content

Commit

Permalink
community[patch]: deprecate community fireworks (#18544)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Mar 5, 2024
1 parent ca1d427 commit 343438e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/community/langchain_community/chat_models/fireworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Union,
)

from langchain_core._api.deprecation import deprecated
from langchain_core.callbacks import (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,
Expand Down Expand Up @@ -78,6 +79,11 @@ def convert_dict_to_message(_dict: Any) -> BaseMessage:
return ChatMessage(content=content, role=role)


@deprecated(
since="0.0.26",
removal="0.2",
alternative_import="langchain_fireworks.ChatFireworks",
)
class ChatFireworks(BaseChatModel):
"""Fireworks Chat models."""

Expand Down
6 changes: 6 additions & 0 deletions libs/community/langchain_community/llms/fireworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from concurrent.futures import ThreadPoolExecutor
from typing import Any, AsyncIterator, Callable, Dict, Iterator, List, Optional, Union

from langchain_core._api.deprecation import deprecated
from langchain_core.callbacks import (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,
Expand All @@ -26,6 +27,11 @@ def _stream_response_to_generation_chunk(
)


@deprecated(
since="0.0.26",
removal="0.2",
alternative_import="langchain_fireworks.Fireworks",
)
class Fireworks(BaseLLM):
"""Fireworks models."""

Expand Down

0 comments on commit 343438e

Please sign in to comment.