mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +00:00
Clippy.
This commit is contained in:
parent
818c8db29a
commit
9aa71d61fb
@ -39,13 +39,6 @@ from typing import Dict, List, Optional
|
|||||||
from aiohttp import ClientConnectorError, ClientOSError, ServerDisconnectedError
|
from aiohttp import ClientConnectorError, ClientOSError, ServerDisconnectedError
|
||||||
from docker.errors import NotFound
|
from docker.errors import NotFound
|
||||||
from syrupy.extensions.json import JSONSnapshotExtension
|
from syrupy.extensions.json import JSONSnapshotExtension
|
||||||
from huggingface_hub.inference._generated.types.chat_completion import (
|
|
||||||
ChatCompletionStreamOutput,
|
|
||||||
ChatCompletionOutput,
|
|
||||||
)
|
|
||||||
from openai.types.chat.chat_completion_chunk import (
|
|
||||||
ChatCompletionChunk as OAIChatCompletionChunk,
|
|
||||||
)
|
|
||||||
from text_generation import AsyncClient
|
from text_generation import AsyncClient
|
||||||
from text_generation.types import (
|
from text_generation.types import (
|
||||||
BestOfSequence,
|
BestOfSequence,
|
||||||
|
@ -13,4 +13,3 @@ def chat_handle(launcher):
|
|||||||
async def chat_client(chat_handle):
|
async def chat_client(chat_handle):
|
||||||
await chat_handle.health(300)
|
await chat_handle.health(300)
|
||||||
return chat_handle.client
|
return chat_handle.client
|
||||||
|
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import requests
|
import requests
|
||||||
import json
|
|
||||||
from aiohttp import ClientSession
|
|
||||||
from openai import OpenAI
|
from openai import OpenAI
|
||||||
from huggingface_hub import InferenceClient
|
from huggingface_hub import InferenceClient
|
||||||
from text_generation.types import Completion
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
|
Loading…
Reference in New Issue
Block a user