Skip to content

Commit

Permalink
Merge pull request #33 from ai-forever/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Mikelarg authored Aug 5, 2024
2 parents d6f9085 + 920faf5 commit 9f75a76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gigachat"
version = "0.1.32"
version = "0.1.33"
description = "GigaChat. Python-library for GigaChain and LangChain"
authors = ["Konstantin Krestnikov <[email protected]>", "Sergey Malyshev <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/gigachat/api/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from typing import Dict, Optional, TypeVar
from typing import Dict, Optional, Type, TypeVar

from gigachat.context import (
authorization_cvar,
Expand Down Expand Up @@ -49,7 +49,7 @@ def build_headers(access_token: Optional[str] = None) -> Dict[str, str]:
T = TypeVar("T", bound=BaseModel)


def parse_chunk(line: str, model_class: type[T]) -> Optional[T]:
def parse_chunk(line: str, model_class: Type[T]) -> Optional[T]:
try:
name, _, value = line.partition(": ")
if name == "data":
Expand Down

0 comments on commit 9f75a76

Please sign in to comment.