<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>.NET - Форум программистов и сисадминов Киберфорум</title>
		<link>https://www.cyberforum.ru/</link>
		<description>Форум программистов Microsoft .NET. Программирование с использованием платформы Microsoft.NET</description>
		<language>ru</language>
		<lastBuildDate>Mon, 05 Oct 2026 20:51:03 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://www.cyberforum.ru//cyberstatic.net/images/misc/rss.jpg</url>
			<title>.NET - Форум программистов и сисадминов Киберфорум</title>
			<link>https://www.cyberforum.ru/</link>
		</image>
		<item>
			<title><![CDATA[.NET 10 Как узнать активирована ли Window's в коде? - C# для начинающих]]></title>
			<link>https://www.cyberforum.ru/csharp-beginners/thread3226059.html</link>
			<pubDate>Sat, 03 Oct 2026 00:31:16 GMT</pubDate>
			<description>всем привет, это мой первый тред тут, пытаюсь написать программу, которая будет активировать винду,...</description>
			<content:encoded><![CDATA[<div>всем привет, это мой первый тред тут, пытаюсь написать программу, которая будет активировать винду, вне зависимости от версии и тд, возникла проблема, приложение консольное, думал получится получить значение выполненной в консоли команды <div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Цитата:</div>
	<table cellpadding="5" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				slmgr /xpr
			
			<hr />
		</td>
	</tr>
	</table>
</div>но столкнулся с проблемой того, что это на сколько понял VBScript, т.е. не совсем стандартная команда, а скорее служба с собственными командами, потому результат обратно в код у меня не получилось вернуть, кто-то разбирается/может помочь?<br />
p.s. мне не нужен сам код с решением проблемы, я хочу разобраться в устройстве</div>

]]></content:encoded>
			<category domain="https://www.cyberforum.ru/csharp-beginners/">C# для начинающих</category>
			<dc:creator>altussshhhka</dc:creator>
			<guid isPermaLink="true">https://www.cyberforum.ru/csharp-beginners/thread3226059.html</guid>
		</item>
		<item>
			<title>GigaChat sdk - C#: API, боты</title>
			<link>https://www.cyberforum.ru/csharp-api/thread3225983.html</link>
			<pubDate>Tue, 29 Sep 2026 06:51:58 GMT</pubDate>
			<description>Добрый день! 
Код доходит до  (response == null. SDK вернул null. Проверьте сертификаты и лимиты...</description>
			<content:encoded><![CDATA[<div>Добрый день!<br />
Код доходит до  (response == null. SDK вернул null. Проверьте сертификаты и лимиты тарифа.&quot;); В чем может быть проблема,сертификаты установлены , вроде как должно работать и без них (третий параметр sdk)<br />
<br />
<div class="printablecode">
	<div class="smallfont">:</div>
	<hr /><code dir="ltr">using LikhodedDynamics.Sber.GigaChatSDK;<br />
using LikhodedDynamics.Sber.GigaChatSDK.Models;<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Globalization;<br />
using System.Linq;<br />
using TMPro;<br />
using UnityEngine;<br />
<br />
namespace SAWD.AI<br />
{<br />
&nbsp; &nbsp; public class AISender : MonoBehaviour<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public string ApiKey;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static GigaChat Chat;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &#91;SerializeField&#93; private List&lt;MessageContent&gt; story = new List&lt;MessageContent&gt;();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void Awake()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Chat = new GigaChat(ApiKey,false,true, true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; private async void Start()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(&quot;&#91;AISender&#93; Запрос токена...&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; await Chat.CreateTokenAsync();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(&quot;&#91;AISender&#93; Токен получен.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.LogError($&quot;&#91;AISender&#93; Ошибка получения токена: {e.Message}&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (e.InnerException != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.LogError($&quot;&#91;AISender&#93; Внутренняя: {e.InnerException.Message}&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string prompt = &quot;Привет&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; story.Add(new MessageContent(&quot;user&quot;, prompt));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Response response = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var mq = new MessageQuery(story);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mq.model = &quot;GigaChat-3-Ultra&quot;; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.Log($&quot;&#91;AISender&#93; Отправка запроса к модели {mq.model}...&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response = await Chat.CompletionsAsync(mq);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.LogError($&quot;&#91;AISender&#93; Ошибка запроса: {e.Message}&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (e.InnerException != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.LogError($&quot;&#91;AISender&#93; Внутренняя: {e.InnerException.Message}&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response == null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.LogError(&quot;&#91;AISender&#93; response == null. SDK вернул null. Проверьте сертификаты и лимиты тарифа.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response.choices == null || response.choices.Count == 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.LogError(&quot;&#91;AISender&#93; response.choices пуст. Возможно, модель недоступна или превышен лимит.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var lastChoice = response.choices.LastOrDefault();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (lastChoice == null || lastChoice.message == null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.LogError(&quot;&#91;AISender&#93; lastChoice или message == null.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; story.Add(lastChoice.message);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string messageText = lastChoice.message.content;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.Log($&quot;&#91;AISender&#93; Ответ: {messageText}&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="https://www.cyberforum.ru/csharp-api/">C#: API, боты</category>
			<dc:creator>Alekz0</dc:creator>
			<guid isPermaLink="true">https://www.cyberforum.ru/csharp-api/thread3225983.html</guid>
		</item>
	</channel>
</rss>
