{"id":482691,"date":"2026-06-07T11:05:59","date_gmt":"2026-06-07T11:05:59","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=482691"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=482691","title":{"rendered":"\u041a\u0430\u043a \u044f \u0434\u043e\u0432\u0451\u043b \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043d\u0430 LLM \u0434\u043e \u043d\u0443\u043b\u044f: \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0442\u0430\u0440\u0438\u0444\u0430\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c \u2014 \u0432\u0440\u0430\u0433"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042d\u0442\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 <a href=\"https:\/\/habr.com\/ru\/articles\/996940\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e Briefka<\/a> \u2014 \u0442\u0430\u043c \u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u0441\u0430\u043c\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043a\u0430\u0441\u043a\u0430\u0434\u0430 LLM-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432. \u0417\u0430 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0435 4 \u043c\u0435\u0441\u044f\u0446\u0430 \u0431\u043e\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0440\u043e\u0441 \u0441 59 \u0434\u043e 84 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043a\u0430\u0441\u043a\u0430\u0434 \u043d\u0430\u0447\u0430\u043b \u0441\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u0432\u044b\u0448\u043b\u043e \u0438 \u043a\u0430\u043a \u044f \u0432\u0435\u0440\u043d\u0443\u043b \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043a \u043d\u0443\u043b\u044e \u2014 \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438 \u0438 \u043a\u043e\u0434\u043e\u043c.<\/p>\n<p><em>\u041a\u043e\u0434 \u043d\u0438\u0436\u0435 \u2014 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u0431\u043e\u0435\u0432\u043e\u0433\u043e Briefka, \u0441\u043b\u0435\u0433\u043a\u0430 \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u0438: \u0443\u0431\u0440\u0430\u043d\u044b \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0441\u0431\u043e\u0440 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438.<\/em><\/p>\n<h3>\u0427\u0442\u043e \u0437\u0430 \u043a\u0430\u0441\u043a\u0430\u0434 (\u043a\u043e\u0440\u043e\u0442\u043a\u043e)<\/h3>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u2014 \u043b\u0435\u0441\u0435\u043d\u043a\u0430 \u0438\u0437 \u043f\u044f\u0442\u0438, \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0444\u043e\u043b\u0431\u044d\u043a\u043e\u043c \u043f\u0440\u0438 rate limit:<\/p>\n<pre><code>Groq #1 (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, 12K TPM)  \u2192 Groq #2 (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442)    \u2192 Mistral (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e)      \u2192 Cerebras (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0431\u044b\u0441\u0442\u0440\u044b\u0439)        \u2192 DeepSeek (\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u2014 \u044f\u043a\u043e\u0440\u044c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0430\u0437\u0430)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043f\u043e\u043a\u0430 \u0445\u043e\u0442\u044c \u043e\u0434\u0438\u043d \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043d\u0435 \u0443\u043f\u0435\u0440\u0441\u044f \u0432 \u043b\u0438\u043c\u0438\u0442, \u043c\u044b \u043d\u0435 \u043f\u043b\u0430\u0442\u0438\u043c. DeepSeek \u0432\u043d\u0438\u0437\u0443 \u2014 \u0441\u0442\u0440\u0430\u0445\u043e\u0432\u043a\u0430 \u043e\u0442 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0430\u0437\u0430, \u0430 \u043d\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<\/p>\n<p>\u0421\u0430\u043c \u043a\u0430\u0441\u043a\u0430\u0434 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0442\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438, \u2014 DeepSeek \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c:<\/p>\n<p>python<\/p>\n<pre><code># src\/llm\/client.pydef build_llm_chain(deepseek_key, groq_key=None, groq_key_2=None,                    mistral_key=None, cerebras_key=None):    \"\"\"\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0441\u043a\u0430\u0434 \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. DeepSeek \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 (\u044f\u043a\u043e\u0440\u044c).\"\"\"    clients = []    if groq_key:     clients.append(LLMClient(groq_key,     provider=\"groq\"))      # \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439    if groq_key_2:   clients.append(LLMClient(groq_key_2,   provider=\"groq\"))      # \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442    if mistral_key:  clients.append(LLMClient(mistral_key,  provider=\"mistral\"))   # \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439    if cerebras_key: clients.append(LLMClient(cerebras_key, provider=\"cerebras\"))  # \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439    clients.append(LLMClient(deepseek_key, provider=\"deepseek\"))                   # \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u044f\u043a\u043e\u0440\u044c    return LLMChainClient(clients)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410 \u0432\u043e\u0442 \u0441\u0430\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440. \u0412\u0430\u0436\u043d\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0435 \u0431\u044b\u043b\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u2014 <strong>circuit breaker<\/strong>: \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440, \u0441\u043b\u043e\u0432\u0438\u0432\u0448\u0438\u0439 429, \u0443\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 cooldown \u0438 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u043e\u043b\u0431\u0438\u0442\u044c\u0441\u044f \u0432 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u043d\u044b\u0439 \u043b\u0438\u043c\u0438\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435.<\/p>\n<p>python<\/p>\n<pre><code># src\/llm\/client.pyclass LLMChainClient:    # \u041e\u0448\u0438\u0431\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0443    FALLBACK_ERRORS = (\"rate_limit\", \"429\", \"quota\", \"capacity\",                       \"overloaded\", \"timeout\", \"connection\", \"503\", \"502\", \"500\")    COOLDOWN_SECONDS = 600  # \u043f\u043e\u0441\u043b\u0435 429 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u00ab\u043e\u0442\u0434\u044b\u0445\u0430\u0435\u0442\u00bb 10 \u043c\u0438\u043d\u0443\u0442    async def complete(self, prompt, **kw):        last_error = None        for i, client in enumerate(self.clients):            # circuit breaker: \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u00ab\u043e\u0441\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445\u00bb, \u043a\u0440\u043e\u043c\u0435 \u044f\u043a\u043e\u0440\u044f \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435            if self._is_cooling(i) and i &lt; len(self.clients) - 1:                continue            try:                return await client.complete(prompt, **kw)            except Exception as e:                last_error = e                if not self._is_fallback_error(e):                    raise                        # \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043d\u0430\u044f\/auth-\u043e\u0448\u0438\u0431\u043a\u0430 \u2014 \u043d\u0435 \u0444\u043e\u043b\u0431\u044d\u0447\u0438\u043c                if self._is_rate_limit_error(e):                    self._set_cooldown(i)        # 429 \u2192 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043d\u0430 cooldown                if i == len(self.clients) - 1:   # \u0443\u043f\u0430\u043b \u0434\u0430\u0436\u0435 \u044f\u043a\u043e\u0440\u044c                    raise                # \u0438\u043d\u0430\u0447\u0435 \u2014 \u043c\u043e\u043b\u0447\u0430 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e        raise last_error<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u041f\u043e\u0431\u043e\u0447\u043d\u0430\u044f \u0433\u0440\u0430\u0431\u043b\u044f: \u043f\u0435\u0440\u0435\u0435\u0437\u0434 \u0441 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h3>\n<p>\u0414\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0442\u0440\u0430\u0442 \u0431\u044b\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u044e\u0440\u043f\u0440\u0438\u0437. \u041f\u0435\u0440\u0432\u044b\u0439 VPS \u0431\u044b\u043b \u0441 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u043c IP \u2014 \u0438 <strong>\u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0437\u0430\u0440\u0443\u0431\u0435\u0436\u043d\u044b\u043c LLM \u0441 \u043d\u0435\u0433\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442\u0441\u044f<\/strong>. \u041f\u043e\u0441\u043b\u0435 \u0434\u0435\u043f\u043b\u043e\u044f \u0432\u0441\u0451 \u0432\u0441\u0442\u0430\u043b\u043e. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u0440\u0443\u0431\u0435\u0436\u043d\u044b\u0439 VPS \u0441 \u0447\u0438\u0441\u0442\u044b\u043c IP; \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e, \u0431\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0435\u0439 \u0438 \u043e\u0431\u0451\u0440\u0442\u043e\u043a. \u0415\u0441\u043b\u0438 \u0433\u043e\u043d\u044f\u0435\u0442\u0435 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u2014 \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u043e \u0441\u0440\u0430\u0437\u0443.<\/p>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0435: thundering herd \u043f\u0440\u043e\u0442\u0438\u0432 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043b\u0438\u043c\u0438\u0442\u043e\u0432<\/h3>\n<p>\u041f\u0440\u0438 \u0440\u043e\u0441\u0442\u0435 \u0434\u043e 80+ \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u044b\u043b\u0435\u0437 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442. \u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b\u0430 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e, \u0438 <strong>\u0432\u0441\u0435 LLM-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0443\u0445\u043e\u0434\u0438\u043b\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e<\/strong>. \u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0434\u0440\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0432\u0430\u043b\u0438 \u0441\u0432\u043e\u0438 rate-limit&#8217;\u044b \u2014 \u0438 \u043a\u0430\u0441\u043a\u0430\u0434 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u0441\u0432\u0430\u043b\u0438\u0432\u0430\u043b\u0441\u044f \u043d\u0430 DeepSeek.<\/p>\n<p>\u0412 \u0446\u0438\u0444\u0440\u0430\u0445 \u0437\u0430 \u043c\u0430\u0439 \u2014 915 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 DeepSeek. \u041f\u043e \u0434\u0435\u043d\u044c\u0433\u0430\u043c \u044d\u0442\u043e \u0441\u043c\u0435\u0448\u043d\u044b\u0435 ~$0.10, \u0434\u0435\u043b\u043e \u043d\u0435 \u0432 \u0441\u0443\u043c\u043c\u0435: \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u00ab\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439\u00bb \u043a\u0430\u0441\u043a\u0430\u0434 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0430\u043b \u0431\u044b\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c, \u0438 \u0440\u0430\u0441\u0445\u043e\u0434 \u0440\u043e\u0441 \u0431\u044b \u043b\u0438\u043d\u0435\u0439\u043d\u043e \u0441 \u0447\u0438\u0441\u043b\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u042f \u043f\u043e \u0441\u0443\u0442\u0438 \u0441\u0430\u043c \u0441\u0435\u0431\u044f DDOS-\u0438\u043b \u043f\u0440\u043e\u0442\u0438\u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043b\u0438\u043c\u0438\u0442\u043e\u0432.<\/p>\n<h3>\u0424\u0438\u043a\u0441: \u0434\u0432\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/h3>\n<p><strong>1. \u0420\u0430\u0437\u043d\u043e\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/strong> \u041f\u0430\u0443\u0437\u0430 ~10 \u0441\u0435\u043a\u0443\u043d\u0434 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438. \u0412\u0435\u0441\u044c \u0446\u0438\u043a\u043b \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u043c\u0438\u043d\u0443\u0442\u044b \u0434\u043e ~13 \u043c\u0438\u043d\u0443\u0442 \u2014 \u0437\u0430\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043b\u0438\u043c\u0438\u0442\u044b \u0443\u0441\u043f\u0435\u0432\u0430\u044e\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0438 \u043f\u0438\u043a \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u0430\u0437\u043c\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>python<\/p>\n<pre><code># src\/scheduler\/jobs.pyfor user in users:    if self._parse_digest_hour(user.digest_time) == current_hour:        try:            await self._send_digest_to_user(user.telegram_id, session)        except Exception as e:            logger.error(f\"Failed to send digest to {user.telegram_id}: {e}\")        await asyncio.sleep(10)  # Stagger LLM load: 10s between users<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>2. \u0421\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f LLM-\u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u0430.<\/strong> \u0412\u043c\u0435\u0441\u0442\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043c\u0430\u0444\u043e\u0440 \u043d\u0430 1. \u0421\u043d\u0438\u0436\u0430\u0435\u0442 \u043f\u0438\u043a\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u044e \u0437\u0430 \u043b\u0438\u043c\u0438\u0442\u044b. \u0411\u043e\u043d\u0443\u0441\u043e\u043c \u2014 \u043a\u0440\u043e\u0441\u0441-\u044e\u0437\u0435\u0440\u043d\u044b\u0439 \u043a\u044d\u0448: \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043f\u043e\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0438\u0442\u0430\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432, \u0447\u0435\u0440\u0435\u0437 LLM \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437.<\/p>\n<p>python<\/p>\n<pre><code># src\/scheduler\/jobs.pysemaphore = asyncio.Semaphore(1)  # Sequential LLM calls to avoid TPM rate limitsasync def process_one(item):    db_post, content, channel_name = item    # \u043a\u0440\u043e\u0441\u0441-\u044e\u0437\u0435\u0440\u043d\u044b\u0439 \u043a\u044d\u0448: \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432 \u043f\u043e\u0441\u0442 \u043d\u0435 \u0433\u043e\u043d\u044f\u0435\u043c \u0447\u0435\u0440\u0435\u0437 LLM \u0434\u0432\u0430\u0436\u0434\u044b    cache_key = hashlib.md5(content.encode(\"utf-8\", errors=\"replace\")).hexdigest()    if cache_key in self._post_cache:        return (self._post_cache[cache_key], channel_name)    async with semaphore:        result = await self.processor.analyze_post(content, channel_name)        if result:            self._post_cache[cache_key] = result        return (result, channel_name)results = await asyncio.gather(*(process_one(p) for p in posts_to_process))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h3>\n<p>26 \u043c\u0430\u044f \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c \u0441 <strong>\u043d\u0443\u043b\u0451\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u0432 DeepSeek<\/strong>. \u0412\u0435\u0441\u044c \u0446\u0438\u043a\u043b \u0438\u0437 81 \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u0430 \u043f\u0440\u043e\u0448\u0451\u043b \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u0445.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041f\u0435\u0440\u0438\u043e\u0434<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0412\u044b\u0437\u043e\u0432\u043e\u0432 DeepSeek<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0424\u0435\u0432\u0440\u0430\u043b\u044c\u2013\u043c\u0430\u0440\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\">0<\/p>\n<\/td>\n<td>\n<p align=\"left\">$0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0410\u043f\u0440\u0435\u043b\u044c<\/p>\n<\/td>\n<td>\n<p align=\"left\">88<\/p>\n<\/td>\n<td>\n<p align=\"left\">~$0.02<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u0430\u0439 (\u0434\u043e \u0444\u0438\u043a\u0441\u0430)<\/p>\n<\/td>\n<td>\n<p align=\"left\">915<\/p>\n<\/td>\n<td>\n<p align=\"left\">~$0.10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u0430\u0439, 26+ (\u043f\u043e\u0441\u043b\u0435 \u0444\u0438\u043a\u0441\u0430)<\/p>\n<\/td>\n<td>\n<p align=\"left\">0<\/p>\n<\/td>\n<td>\n<p align=\"left\">$0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u0412\u044b\u0432\u043e\u0434<\/h3>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0438\u043d\u0441\u0430\u0439\u0442 \u043a\u043e\u043d\u0442\u0440\u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u044b\u0439: <strong>\u043d\u0430 \u043c\u0430\u043b\u043e\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u0435\u043d, \u0430 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0442\u0430\u0440\u0438\u0444\u043e\u0432 \u043e\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u0440\u0430\u0433\u043e\u043c.<\/strong> \u041a\u043e\u0433\u0434\u0430 \u0443\u043f\u0438\u0440\u0430\u0435\u0448\u044c\u0441\u044f \u0432 rate-limit \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432, \u0441\u043f\u0430\u0441\u0430\u0435\u0442 \u043d\u0435 \u00ab\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0435\u0435\u00bb, \u0430 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u2014 \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c. \u0422\u044b \u0440\u0430\u0437\u043c\u0435\u043d\u0432\u0430\u0435\u0448\u044c \u043b\u0430\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c.<\/p>\n<p>\u0418 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u043d \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0433\u043e\u0434\u0435\u043d, \u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f. \u0414\u043b\u044f \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0433\u043e \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u0430 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043c\u0435\u0436\u0434\u0443 \u00ab\u0433\u043e\u0442\u043e\u0432\u043e \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443\u00bb \u0438 \u00ab\u0433\u043e\u0442\u043e\u0432\u043e \u0437\u0430 13 \u043c\u0438\u043d\u0443\u0442\u00bb \u2014 \u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043f\u0430\u0434\u0430\u044e\u0442 \u0434\u043e \u043d\u0443\u043b\u044f. \u0411\u0443\u0434\u044c \u044d\u0442\u043e \u0447\u0430\u0442 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0440\u0430\u0437\u043c\u0435\u043d \u0431\u044b\u043b \u0431\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d, \u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0437\u0430 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u0443\u044e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>\u0422\u0435\u043a\u0443\u0449\u0438\u0435 \u0446\u0438\u0444\u0440\u044b: 84 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, 1 806 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u043e\u0432, 237 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u0430\u043f\u0442\u0430\u0439\u043c \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u2014 11 \u0434\u043d\u0435\u0439.<\/p>\n<hr\/>\n<p><em>\u0411\u043e\u0442 \u2014 <\/em><a href=\"https:\/\/t.me\/Briefka_bot\" rel=\"noopener noreferrer nofollow\"><em>@Briefka_bot<\/em><\/a><em>. \u041f\u0438\u0448\u0443 \u043f\u0440\u043e \u0442\u0430\u043a\u0438\u0435 \u0448\u0442\u0443\u043a\u0438 \u0432 <\/em><a href=\"https:\/\/tezarium.com\" rel=\"noopener noreferrer nofollow\"><em>Tezarium<\/em><\/a><em>.<\/em><\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1044546\/\">https:\/\/habr.com\/ru\/articles\/1044546\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042d\u0442\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e Briefka \u2014 \u0442\u0430\u043c \u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u0441\u0430\u043c\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043a\u0430\u0441\u043a\u0430\u0434\u0430 LLM-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432. \u0417\u0430 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0435 4 \u043c\u0435\u0441\u044f\u0446\u0430 \u0431\u043e\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0440\u043e\u0441 \u0441 59 \u0434\u043e 84 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043a\u0430\u0441\u043a\u0430\u0434 \u043d\u0430\u0447\u0430\u043b \u0441\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u0432\u044b\u0448\u043b\u043e \u0438 \u043a\u0430\u043a \u044f \u0432\u0435\u0440\u043d\u0443\u043b \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043a \u043d\u0443\u043b\u044e \u2014 \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438 \u0438 \u043a\u043e\u0434\u043e\u043c.\u041a\u043e\u0434 \u043d\u0438\u0436\u0435 \u2014 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u0431\u043e\u0435\u0432\u043e\u0433\u043e Briefka, \u0441\u043b\u0435\u0433\u043a\u0430 \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u0438: \u0443\u0431\u0440\u0430\u043d\u044b \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0441\u0431\u043e\u0440 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438.\u0427\u0442\u043e \u0437\u0430 \u043a\u0430\u0441\u043a\u0430\u0434 (\u043a\u043e\u0440\u043e\u0442\u043a\u043e)\u0412\u043c\u0435\u0441\u0442\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u2014 \u043b\u0435\u0441\u0435\u043d\u043a\u0430 \u0438\u0437 \u043f\u044f\u0442\u0438, \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0444\u043e\u043b\u0431\u044d\u043a\u043e\u043c \u043f\u0440\u0438 rate limit:Groq #1 (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, 12K TPM)  \u2192 Groq #2 (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442)    \u2192 Mistral (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e)      \u2192 Cerebras (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0431\u044b\u0441\u0442\u0440\u044b\u0439)        \u2192 DeepSeek (\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u2014 \u044f\u043a\u043e\u0440\u044c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0430\u0437\u0430)\u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043f\u043e\u043a\u0430 \u0445\u043e\u0442\u044c \u043e\u0434\u0438\u043d \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043d\u0435 \u0443\u043f\u0435\u0440\u0441\u044f \u0432 \u043b\u0438\u043c\u0438\u0442, \u043c\u044b \u043d\u0435 \u043f\u043b\u0430\u0442\u0438\u043c. DeepSeek \u0432\u043d\u0438\u0437\u0443 \u2014 \u0441\u0442\u0440\u0430\u0445\u043e\u0432\u043a\u0430 \u043e\u0442 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0430\u0437\u0430, \u0430 \u043d\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.\u0421\u0430\u043c \u043a\u0430\u0441\u043a\u0430\u0434 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0442\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438, \u2014 DeepSeek \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c:python# src\/llm\/client.pydef build_llm_chain(deepseek_key, groq_key=None, groq_key_2=None,                    mistral_key=None, cerebras_key=None):    &#171;&#187;&#187;\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0441\u043a\u0430\u0434 \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. DeepSeek \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 (\u044f\u043a\u043e\u0440\u044c).&#187;&#187;&#187;    clients = []    if groq_key:     clients.append(LLMClient(groq_key,     provider=&#187;groq&#187;))      # \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439    if groq_key_2:   clients.append(LLMClient(groq_key_2,   provider=&#187;groq&#187;))      # \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442    if mistral_key:  clients.append(LLMClient(mistral_key,  provider=&#187;mistral&#187;))   # \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439    if cerebras_key: clients.append(LLMClient(cerebras_key, provider=&#187;cerebras&#187;))  # \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439    clients.append(LLMClient(deepseek_key, provider=&#187;deepseek&#187;))                   # \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u044f\u043a\u043e\u0440\u044c    return LLMChainClient(clients)\u0410 \u0432\u043e\u0442 \u0441\u0430\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440. \u0412\u0430\u0436\u043d\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0435 \u0431\u044b\u043b\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u2014 circuit breaker: \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440, \u0441\u043b\u043e\u0432\u0438\u0432\u0448\u0438\u0439 429, \u0443\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 cooldown \u0438 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u043e\u043b\u0431\u0438\u0442\u044c\u0441\u044f \u0432 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u043d\u044b\u0439 \u043b\u0438\u043c\u0438\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435.python# src\/llm\/client.pyclass LLMChainClient:    # \u041e\u0448\u0438\u0431\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0443    FALLBACK_ERRORS = (&#171;rate_limit&#187;, &#171;429&#187;, &#171;quota&#187;, &#171;capacity&#187;,                       &#171;overloaded&#187;, &#171;timeout&#187;, &#171;connection&#187;, &#171;503&#187;, &#171;502&#187;, &#171;500&#187;)    COOLDOWN_SECONDS = 600  # \u043f\u043e\u0441\u043b\u0435 429 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u00ab\u043e\u0442\u0434\u044b\u0445\u0430\u0435\u0442\u00bb 10 \u043c\u0438\u043d\u0443\u0442    async def complete(self, prompt, **kw):        last_error = None        for i, client in enumerate(self.clients):            # circuit breaker: \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u00ab\u043e\u0441\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445\u00bb, \u043a\u0440\u043e\u043c\u0435 \u044f\u043a\u043e\u0440\u044f \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435            if self._is_cooling(i) and i &lt; len(self.clients) &#8212; 1:                continue            try:                return await client.complete(prompt, **kw)            except Exception as e:                last_error = e                if not self._is_fallback_error(e):                    raise                        # \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043d\u0430\u044f\/auth-\u043e\u0448\u0438\u0431\u043a\u0430 \u2014 \u043d\u0435 \u0444\u043e\u043b\u0431\u044d\u0447\u0438\u043c                if self._is_rate_limit_error(e):                    self._set_cooldown(i)        # 429 \u2192 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043d\u0430 cooldown                if i == len(self.clients) &#8212; 1:   # \u0443\u043f\u0430\u043b \u0434\u0430\u0436\u0435 \u044f\u043a\u043e\u0440\u044c                    raise                # \u0438\u043d\u0430\u0447\u0435 \u2014 \u043c\u043e\u043b\u0447\u0430 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e        raise last_error\u041f\u043e\u0431\u043e\u0447\u043d\u0430\u044f \u0433\u0440\u0430\u0431\u043b\u044f: \u043f\u0435\u0440\u0435\u0435\u0437\u0434 \u0441 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0414\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0442\u0440\u0430\u0442 \u0431\u044b\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u044e\u0440\u043f\u0440\u0438\u0437. \u041f\u0435\u0440\u0432\u044b\u0439 VPS \u0431\u044b\u043b \u0441 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u043c IP \u2014 \u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0437\u0430\u0440\u0443\u0431\u0435\u0436\u043d\u044b\u043c LLM \u0441 \u043d\u0435\u0433\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442\u0441\u044f. \u041f\u043e\u0441\u043b\u0435 \u0434\u0435\u043f\u043b\u043e\u044f \u0432\u0441\u0451 \u0432\u0441\u0442\u0430\u043b\u043e. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u0440\u0443\u0431\u0435\u0436\u043d\u044b\u0439 VPS \u0441 \u0447\u0438\u0441\u0442\u044b\u043c IP; \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e, \u0431\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0435\u0439 \u0438 \u043e\u0431\u0451\u0440\u0442\u043e\u043a. \u0415\u0441\u043b\u0438 \u0433\u043e\u043d\u044f\u0435\u0442\u0435 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u2014 \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u043e \u0441\u0440\u0430\u0437\u0443.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0435: thundering herd \u043f\u0440\u043e\u0442\u0438\u0432 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043b\u0438\u043c\u0438\u0442\u043e\u0432\u041f\u0440\u0438 \u0440\u043e\u0441\u0442\u0435 \u0434\u043e 80+ \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u044b\u043b\u0435\u0437 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442. \u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b\u0430 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e, \u0438 \u0432\u0441\u0435 LLM-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0443\u0445\u043e\u0434\u0438\u043b\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0434\u0440\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0432\u0430\u043b\u0438 \u0441\u0432\u043e\u0438 rate-limit&#8217;\u044b \u2014 \u0438 \u043a\u0430\u0441\u043a\u0430\u0434 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u0441\u0432\u0430\u043b\u0438\u0432\u0430\u043b\u0441\u044f \u043d\u0430 DeepSeek.\u0412 \u0446\u0438\u0444\u0440\u0430\u0445 \u0437\u0430 \u043c\u0430\u0439 \u2014 915 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 DeepSeek. \u041f\u043e \u0434\u0435\u043d\u044c\u0433\u0430\u043c \u044d\u0442\u043e \u0441\u043c\u0435\u0448\u043d\u044b\u0435 ~$0.10, \u0434\u0435\u043b\u043e \u043d\u0435 \u0432 \u0441\u0443\u043c\u043c\u0435: \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u00ab\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439\u00bb \u043a\u0430\u0441\u043a\u0430\u0434 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0430\u043b \u0431\u044b\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c, \u0438 \u0440\u0430\u0441\u0445\u043e\u0434 \u0440\u043e\u0441 \u0431\u044b \u043b\u0438\u043d\u0435\u0439\u043d\u043e \u0441 \u0447\u0438\u0441\u043b\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u042f \u043f\u043e \u0441\u0443\u0442\u0438 \u0441\u0430\u043c \u0441\u0435\u0431\u044f DDOS-\u0438\u043b \u043f\u0440\u043e\u0442\u0438\u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043b\u0438\u043c\u0438\u0442\u043e\u0432.\u0424\u0438\u043a\u0441: \u0434\u0432\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f1. \u0420\u0430\u0437\u043d\u043e\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u0430\u0443\u0437\u0430 ~10 \u0441\u0435\u043a\u0443\u043d\u0434 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438. \u0412\u0435\u0441\u044c \u0446\u0438\u043a\u043b \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u043c\u0438\u043d\u0443\u0442\u044b \u0434\u043e ~13 \u043c\u0438\u043d\u0443\u0442 \u2014 \u0437\u0430\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043b\u0438\u043c\u0438\u0442\u044b \u0443\u0441\u043f\u0435\u0432\u0430\u044e\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0438 \u043f\u0438\u043a \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u0430\u0437\u043c\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f.python# src\/scheduler\/jobs.pyfor user in users:    if self._parse_digest_hour(user.digest_time) == current_hour:        try:            await self._send_digest_to_user(user.telegram_id, session)        except Exception as e:            logger.error(f&#187;Failed to send digest to {user.telegram_id}: {e}&#187;)        await asyncio.sleep(10)  # Stagger LLM load: 10s between users2. \u0421\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f LLM-\u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u0430. \u0412\u043c\u0435\u0441\u0442\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043c\u0430\u0444\u043e\u0440 \u043d\u0430 1. \u0421\u043d\u0438\u0436\u0430\u0435\u0442 \u043f\u0438\u043a\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u044e \u0437\u0430 \u043b\u0438\u043c\u0438\u0442\u044b. \u0411\u043e\u043d\u0443\u0441\u043e\u043c \u2014 \u043a\u0440\u043e\u0441\u0441-\u044e\u0437\u0435\u0440\u043d\u044b\u0439 \u043a\u044d\u0448: \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043f\u043e\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0438\u0442\u0430\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432, \u0447\u0435\u0440\u0435\u0437 LLM \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437.python# src\/scheduler\/jobs.pysemaphore = asyncio.Semaphore(1)  # Sequential LLM calls to avoid TPM rate limitsasync def process_one(item):    db_post, content, channel_name = item    # \u043a\u0440\u043e\u0441\u0441-\u044e\u0437\u0435\u0440\u043d\u044b\u0439 \u043a\u044d\u0448: \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432 \u043f\u043e\u0441\u0442 \u043d\u0435 \u0433\u043e\u043d\u044f\u0435\u043c \u0447\u0435\u0440\u0435\u0437 LLM \u0434\u0432\u0430\u0436\u0434\u044b    cache_key = hashlib.md5(content.encode(&#171;utf-8&#8243;, errors=&#187;replace&#187;)).hexdigest()    if cache_key in self._post_cache:        return (self._post_cache[cache_key], channel_name)    async with semaphore:        result = await self.processor.analyze_post(content, channel_name)        if result:            self._post_cache[cache_key] = result        return (result, channel_name)results = await asyncio.gather(*(process_one(p) for p in posts_to_process))\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u044226 \u043c\u0430\u044f \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c \u0441 \u043d\u0443\u043b\u0451\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u0432 DeepSeek. \u0412\u0435\u0441\u044c \u0446\u0438\u043a\u043b \u0438\u0437 81 \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u0430 \u043f\u0440\u043e\u0448\u0451\u043b \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u0445.\u041f\u0435\u0440\u0438\u043e\u0434\u0412\u044b\u0437\u043e\u0432\u043e\u0432 DeepSeek\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c\u0424\u0435\u0432\u0440\u0430\u043b\u044c\u2013\u043c\u0430\u0440\u04420$0\u0410\u043f\u0440\u0435\u043b\u044c88~$0.02\u041c\u0430\u0439 (\u0434\u043e \u0444\u0438\u043a\u0441\u0430)915~$0.10\u041c\u0430\u0439, 26+ (\u043f\u043e\u0441\u043b\u0435 \u0444\u0438\u043a\u0441\u0430)0$0\u0412\u044b\u0432\u043e\u0434\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0438\u043d\u0441\u0430\u0439\u0442 \u043a\u043e\u043d\u0442\u0440\u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u044b\u0439: \u043d\u0430 \u043c\u0430\u043b\u043e\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u0435\u043d, \u0430 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0442\u0430\u0440\u0438\u0444\u043e\u0432 \u043e\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u0440\u0430\u0433\u043e\u043c. \u041a\u043e\u0433\u0434\u0430 \u0443\u043f\u0438\u0440\u0430\u0435\u0448\u044c\u0441\u044f \u0432 rate-limit \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432, \u0441\u043f\u0430\u0441\u0430\u0435\u0442 \u043d\u0435 \u00ab\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0435\u0435\u00bb, \u0430 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u2014 \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c. \u0422\u044b \u0440\u0430\u0437\u043c\u0435\u043d\u0432\u0430\u0435\u0448\u044c \u043b\u0430\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c.\u0418 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u043d \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0433\u043e\u0434\u0435\u043d, \u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f. \u0414\u043b\u044f \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0433\u043e \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u0430 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043c\u0435\u0436\u0434\u0443 \u00ab\u0433\u043e\u0442\u043e\u0432\u043e \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443\u00bb \u0438 \u00ab\u0433\u043e\u0442\u043e\u0432\u043e \u0437\u0430 13 \u043c\u0438\u043d\u0443\u0442\u00bb \u2014 \u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043f\u0430\u0434\u0430\u044e\u0442 \u0434\u043e \u043d\u0443\u043b\u044f. \u0411\u0443\u0434\u044c \u044d\u0442\u043e \u0447\u0430\u0442 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0440\u0430\u0437\u043c\u0435\u043d \u0431\u044b\u043b \u0431\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d, \u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0437\u0430 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u0443\u044e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c.\u0422\u0435\u043a\u0443\u0449\u0438\u0435 \u0446\u0438\u0444\u0440\u044b: 84 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, 1 806 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u043e\u0432, 237 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u0430\u043f\u0442\u0430\u0439\u043c \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u2014 11 \u0434\u043d\u0435\u0439.\u0411\u043e\u0442 \u2014 @Briefka_bot. \u041f\u0438\u0448\u0443 \u043f\u0440\u043e \u0442\u0430\u043a\u0438\u0435 \u0448\u0442\u0443\u043a\u0438 \u0432 Tezarium.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1044546\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-482691","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=482691"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482691\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}