chore: removing unused imports in tests (#9049)

This commit is contained in:
Bowen Liang
2024-10-08 11:13:11 +08:00
committed by GitHub
parent a8b4d1ac2a
commit 7c0b159a81
30 changed files with 21 additions and 52 deletions

View File

@@ -5,7 +5,7 @@ from typing import Any, Literal, Union
import anthropic
import pytest
from _pytest.monkeypatch import MonkeyPatch
from anthropic import Anthropic, Stream
from anthropic import Stream
from anthropic.resources import Messages
from anthropic.types import (
ContentBlock,

View File

@@ -1,6 +1,6 @@
import os
from collections.abc import Callable
from typing import Any, Literal, Union
from typing import Any, Literal
import pytest

View File

@@ -1,6 +1,6 @@
import re
from collections.abc import Generator
from json import dumps, loads
from json import dumps
from time import time
# import monkeypatch
@@ -11,11 +11,9 @@ from openai._types import NOT_GIVEN, NotGiven
from openai.resources.chat.completions import Completions
from openai.types import Completion as CompletionMessage
from openai.types.chat import (
ChatCompletion,
ChatCompletionChunk,
ChatCompletionMessageParam,
ChatCompletionMessageToolCall,
ChatCompletionToolChoiceOptionParam,
ChatCompletionToolParam,
completion_create_params,
)

View File

@@ -1,7 +1,6 @@
import re
from typing import Any, Literal, Union
from openai import OpenAI
from openai._types import NOT_GIVEN, NotGiven
from openai.resources.embeddings import Embeddings
from openai.types.create_embedding_response import CreateEmbeddingResponse, Usage

View File

@@ -1,6 +1,5 @@
from time import time
from openai.resources.models import Models
from openai.types.model import Model

View File

@@ -5,7 +5,6 @@ from typing import Union
import pytest
from _pytest.monkeypatch import MonkeyPatch
from requests import Response
from requests.exceptions import ConnectionError
from requests.sessions import Session
from xinference_client.client.restful.restful_client import (
Client,