Skip to content

Commit

Permalink
Update xinference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSongg authored Jan 14, 2025
1 parent 5e1d263 commit 49d7fe9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions libs/community/langchain_community/llms/xinference.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
from typing import TYPE_CHECKING, Any, Dict, Generator, List, Mapping, Optional, Union, Iterator
from typing import (
TYPE_CHECKING,
Any,
Dict,
Generator,
List,
Mapping,
Optional,
Union,
Iterator,
)

from langchain_core.callbacks import CallbackManagerForLLMRun
from langchain_core.language_models.llms import LLM
from langchain_core.outputs import GenerationChunk, LLMResult
from langchain_core.outputs import GenerationChunk

if TYPE_CHECKING:

Check failure on line 17 in libs/community/langchain_community/llms/xinference.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff (I001)

langchain_community/llms/xinference.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 17 in libs/community/langchain_community/llms/xinference.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff (I001)

langchain_community/llms/xinference.py:1:1: I001 Import block is un-sorted or un-formatted
from xinference.client import RESTfulChatModelHandle, RESTfulGenerateModelHandle
Expand Down

0 comments on commit 49d7fe9

Please sign in to comment.