mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
#added type ignore for httpx and requests
This commit is contained in:
parent
51b9178630
commit
1b3050477a
1 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import os
|
||||
import json
|
||||
from enum import Enum
|
||||
import requests
|
||||
import requests # type: ignore
|
||||
import time
|
||||
from typing import Callable, Optional, List, Sequence, Any, Union, Dict
|
||||
from litellm.utils import ModelResponse, Choices, Usage, map_finish_reason, CustomStreamWrapper, Message, EmbeddingResponse
|
||||
|
|
@ -9,8 +9,8 @@ import litellm
|
|||
from .prompt_templates.factory import prompt_factory, custom_prompt
|
||||
from litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler
|
||||
from .base import BaseLLM
|
||||
import httpx
|
||||
from typing import Union,Collection
|
||||
import httpx # type: ignore
|
||||
|
||||
|
||||
|
||||
class TritonError(Exception):
|
||||
|
|
@ -163,7 +163,7 @@ class TritonChatCompletion(BaseLLM):
|
|||
data_for_triton = {
|
||||
"inputs": [{"name": "text_input", "shape": [1], "datatype": "BYTES", "data": [messages[0]["content"]]}]
|
||||
}
|
||||
|
||||
|
||||
if logging_obj:
|
||||
logging_obj.pre_call(
|
||||
input=messages,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue