Skip to content

Conversation

@kmaximk
Copy link
Collaborator

@kmaximk kmaximk commented Dec 25, 2025

No description provided.

Copy link
Collaborator

@Mr-Cool-in-Git Mr-Cool-in-Git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Прогнал ноутбук, все ок
Давай его оформим как демонстративный для всех
Переведи комментарии на англ + там есть опечатка

  • добавь комменты к ноуту что считаешь нужным

Вопросы к МР

  1. Тестировал ли на других моделях кроме OpenAI?

self.stats["invoke_calls"] += 1
else:
self.stats["batch_calls"] += 1
self.stats["batch_items"] += kwargs.get("batch_size", 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

почему по дефолту batch_size = 0, если произошел сам вызов модели?

@@ -0,0 +1,113 @@
from langchain_community.callbacks import get_openai_callback
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

все новые классы и методы нужны обернуть докстрингами по Google Style Code (посмотри как у нас в других скриптах)

from langchain_core.language_models.chat_models import BaseChatModel
from langchain_core.messages import BaseMessage
from langchain_openai import ChatOpenAI
from typing import Any
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вынеси на самый верх from typing import Any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants