speedy-utils 1.1.8__tar.gz → 1.1.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/PKG-INFO +1 -1
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/pyproject.toml +1 -1
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/lm/async_lm/async_llm_task.py +6 -2
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/lm/async_lm/async_lm_base.py +0 -1
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/README.md +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/__init__.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/chat_format/__init__.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/chat_format/display.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/chat_format/transform.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/chat_format/utils.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/group_messages.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/lm/__init__.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/lm/async_lm/__init__.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/lm/async_lm/_utils.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/lm/async_lm/async_lm.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/lm/async_lm/lm_specific.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/lm/utils.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/scripts/README.md +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/scripts/vllm_load_balancer.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/llm_utils/scripts/vllm_serve.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/__init__.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/all.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/__init__.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/clock.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/function_decorator.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/logger.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/notebook_utils.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/report_manager.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/utils_cache.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/utils_io.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/utils_misc.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/common/utils_print.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/multi_worker/__init__.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/multi_worker/process.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/multi_worker/thread.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/scripts/__init__.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/scripts/mpython.py +0 -0
- {speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/scripts/openapi_client_codegen.py +0 -0
|
@@ -7,6 +7,7 @@ import pathlib
|
|
|
7
7
|
from abc import ABC
|
|
8
8
|
from dataclasses import dataclass
|
|
9
9
|
from typing import Any, Dict, Generic, List, Literal, Optional, TypeVar, Union, cast
|
|
10
|
+
from venv import logger
|
|
10
11
|
|
|
11
12
|
from openai.types.chat import ChatCompletionMessageParam
|
|
12
13
|
from pydantic import BaseModel
|
|
@@ -512,5 +513,8 @@ class AsyncLLMTask(ABC, Generic[InputModelType, OutputModelType]):
|
|
|
512
513
|
return self
|
|
513
514
|
|
|
514
515
|
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
|
515
|
-
if
|
|
516
|
-
|
|
516
|
+
if hasattr(self._lm, "_last_client"):
|
|
517
|
+
last_client = self._lm._last_client # type: ignore
|
|
518
|
+
await last_client._client.aclose()
|
|
519
|
+
else:
|
|
520
|
+
logger.warning("No last client to close")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{speedy_utils-1.1.8 → speedy_utils-1.1.9}/src/speedy_utils/scripts/openapi_client_codegen.py
RENAMED
|
File without changes
|