mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-06 07:04:01 +00:00
community[patch]: deprecate community fireworks (#18544)
This commit is contained in:
parent
ca1d42785d
commit
343438e872
@ -10,6 +10,7 @@ from typing import (
|
|||||||
Union,
|
Union,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from langchain_core._api.deprecation import deprecated
|
||||||
from langchain_core.callbacks import (
|
from langchain_core.callbacks import (
|
||||||
AsyncCallbackManagerForLLMRun,
|
AsyncCallbackManagerForLLMRun,
|
||||||
CallbackManagerForLLMRun,
|
CallbackManagerForLLMRun,
|
||||||
@ -78,6 +79,11 @@ def convert_dict_to_message(_dict: Any) -> BaseMessage:
|
|||||||
return ChatMessage(content=content, role=role)
|
return ChatMessage(content=content, role=role)
|
||||||
|
|
||||||
|
|
||||||
|
@deprecated(
|
||||||
|
since="0.0.26",
|
||||||
|
removal="0.2",
|
||||||
|
alternative_import="langchain_fireworks.ChatFireworks",
|
||||||
|
)
|
||||||
class ChatFireworks(BaseChatModel):
|
class ChatFireworks(BaseChatModel):
|
||||||
"""Fireworks Chat models."""
|
"""Fireworks Chat models."""
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ import asyncio
|
|||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
from typing import Any, AsyncIterator, Callable, Dict, Iterator, List, Optional, Union
|
from typing import Any, AsyncIterator, Callable, Dict, Iterator, List, Optional, Union
|
||||||
|
|
||||||
|
from langchain_core._api.deprecation import deprecated
|
||||||
from langchain_core.callbacks import (
|
from langchain_core.callbacks import (
|
||||||
AsyncCallbackManagerForLLMRun,
|
AsyncCallbackManagerForLLMRun,
|
||||||
CallbackManagerForLLMRun,
|
CallbackManagerForLLMRun,
|
||||||
@ -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):
|
class Fireworks(BaseLLM):
|
||||||
"""Fireworks models."""
|
"""Fireworks models."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user