{"id":504928,"date":"2026-11-26T14:37:36","date_gmt":"2026-11-26T11:37:36","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=504928"},"modified":"2026-11-26T14:37:36","modified_gmt":"2026-11-26T11:37:36","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=504928","title":{"rendered":"\u041a\u0430\u043a \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 Strata \u201c\u0441\u043b\u043e\u043c\u0430\u043b\u043e\u201d \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044e LLM \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d \u0438 \u043a\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0447\u0438\u043d\u0438\u0442\u044c \u0437\u0430 2 \u043c\u0438\u043d\u0443\u0442\u044b"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 Qwen 3.8) \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Strata \u043d\u0430 \u0445\u043e\u0441\u0442-\u043c\u0430\u0448\u0438\u043d\u0435 \u0438 \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0435 \u0438\u0445 \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 VS Code (\u0441 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c Cline) \u0438\u043b\u0438 Hermes Agent, \u043f\u043e\u0441\u043b\u0435 \u0441\u0432\u0435\u0436\u0435\u0433\u043e \u0430\u043f\u0434\u0435\u0439\u0442\u0430 \u0432\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u043c \u043e\u0442\u043a\u0430\u0437\u043e\u043c \u0432\u0441\u0435\u0439 \u0441\u0432\u044f\u0437\u043a\u0438.<\/p>\n<p>\u041f\u0440\u0438\u0447\u0435\u043c \u0432\u043d\u0435\u0448\u043d\u0435 \u0432\u0441\u0451 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u043e: API-\u043a\u043b\u044e\u0447 \u0438\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f, \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u201cbad-host\u201d, \u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445 \u0443\u043f\u043e\u0440\u043d\u043e \u0440\u0430\u043f\u043e\u0440\u0442\u0443\u0435\u0442 \u043e \u0441\u0431\u043e\u0435. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0438 \u043a\u0430\u043a \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439.<\/p>\n<p>\u0412 \u0447\u0435\u043c \u0441\u0443\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b: \u043e\u0448\u0438\u0431\u043a\u0430 &#171;\u201ccode\u201d: \u201cbad-host\u201d?<br \/>\u0420\u0430\u043d\u044c\u0448\u0435 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b (\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 NAT \u0447\u0435\u0440\u0435\u0437 \u0448\u043b\u044e\u0437 \u201c10.0.2.2\u201d) \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u043f\u043e\u0440\u0442\u0430 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u0430 \u201c<a href=\"http:\/\/10.0.2%E2%80%9D\" rel=\"noopener nofollow\">http:\/\/10.0.2\u201d<\/a> \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u041f\u043e\u0441\u043b\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Strata \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 \u0437\u0430\u0449\u0438\u0442\u0443 \u043e\u0442 DNS Rebinding (\u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u043c\u0438 \u043f\u0430\u0442\u0447\u0430\u043c\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0432 Ollama \u0438 LM Studio). \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u201cHost\u201d \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430:<\/p>\n<ol>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u201cHost\u201d \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u201c<a href=\"http:\/\/localhost\" rel=\"noopener nofollow\">localhost<\/a>\u201d \u0438\u043b\u0438 \u201c127.0.0.1\u201d \u2014 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u0412\u041c \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u201c<a href=\"http:\/\/10.0.2%E2%80%9D\" rel=\"noopener nofollow\">http:\/\/10.0.2\u201d<\/a>, \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u201cHost: 10.0.2.2:47831\u201d. \u041f\u0440\u043e\u0431\u0440\u043e\u0441 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0445\u043e\u0441\u0442\u0430 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442 \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u0438 Strata \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0440\u0443\u0431\u0438\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u0432\u0435\u0442\u043e\u043c: \u201c\u201d\u201cjson {\u201cerror\u201d:\u201cOpen the local Strata app to use host controls.\u201d,\u201ccode\u201d:\u201cbad-host\u201d} \u201c\u201d\u201d<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0430\u0432\u043a\u0430 \u0444\u0430\u0439\u043b\u0430 \u201chosts\u201d \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442: \u041e\u0421 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u201c<a href=\"http:\/\/localhost\" rel=\"noopener nofollow\">localhost<\/a>\u201d \u043d\u0430 \u201c10.0.2.2\u201d, \u0430 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u201cbad-host\u201d.<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0428\u0430\u0433 1. \u041d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0440\u043e\u0441 \u043f\u043e\u0440\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/strong><\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0412\u041c \u0441\u0442\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0441\u0442\u0440\u043e\u0433\u043e \u043d\u0430 \u201c<a href=\"http:\/\/localhost:47831\/v1%E2%80%9D\" rel=\"noopener nofollow\">http:\/\/localhost:47831\/v1\u201d<\/a> (\u0438 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0438 \u00ab\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439\u00bb \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u201cHost\u201d), \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438 \u0438\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 Python. \u0415\u0441\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 Windows, \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0448\u0442\u0430\u0442\u043d\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u201cportproxy\u201d \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u044f\u0434\u0440\u0430. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 (\u201ccmd\u201d) \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0412\u041c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043e\u0434\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p><code>netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=47831 connectaddress=10.0.2.2 connectport=47831<\/code><\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 \u0438 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u201cnetsh interface portproxy show all\u201d.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e (\u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u043d\u0435\u0442 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c): <\/p>\n<p><code>netsh interface portproxy delete v4tov4 listenaddress=127.0.0.1 listenport=47831<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f Linux-\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0431\u0435\u0437 \u0444\u043e\u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u201ciptables\u201d \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 \u201cOUTPUT\u201d \u043d\u0430 \u201cDNAT\u201d):<\/p>\n<p>sudo sysctl -w net.ipv4.conf.all.route_localnet=1<\/p>\n<p><code>sudo iptables -t nat -A OUTPUT -p tcp -d 127.0.0.1 --dport 47831 -j DNAT --to-destination 10.0.2.2:47831<\/code><\/p>\n<p><code>sudo iptables -t nat -A POSTROUTING -p tcp -d 10.0.2.2 --dport 47831 -j MASQUERADE<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0434\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0442\u043e \u043f\u043e\u0434\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>sudo iptables -t nat -D OUTPUT -p tcp -d 127.0.0.1 &#8212;dport 47831 -j DNAT &#8212;to-destination 10.0.2.2:47831<\/p>\n<p>sudo iptables -t nat -D POSTROUTING -p tcp -d 10.0.2.2 &#8212;dport 47831 -j MASQUERADE<\/p>\n<p><strong>\u0428\u0430\u0433 2. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 API-\u043a\u043b\u044e\u0447 \u0432 Strata.<\/strong><\/p>\n<p>\u0412 \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u0432\u0440\u043e\u0434\u0435 \u201csk-no-key\u201d \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.<\/p>\n<ol>\n<li>\n<p>\u041d\u0430 \u0445\u043e\u0441\u0442-\u043c\u0430\u0448\u0438\u043d\u0435 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Strata.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043c\u0435\u043d\u044e &#171;\u0415\u0449\u0435&#187; \u2192 Api.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 API Key \u0438 \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u0435 \u0442\u043e\u0447\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u201cunsloth_q8_0\u201d).<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0428\u0430\u0433 3. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c VS Code (\u0441 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c Cline).<\/strong><\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b Cline \u2192 Settings \u2192 API Configuration \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ul>\n<li>\n<p>API Provider: \u201cOpenAI Compatible\u201d<\/p>\n<\/li>\n<li>\n<p>Base URL: \u201c<a href=\"http:\/\/localhost:47831\/v1%E2%80%9D\" rel=\"noopener nofollow\">http:\/\/localhost:47831\/v1\u201d<\/a><\/p>\n<\/li>\n<li>\n<p>API Key: \u201c&lt;\u0432\u0430\u0448 \u043a\u043b\u044e\u0447 \u0438\u0437 Strata&gt;\u201d<\/p>\n<\/li>\n<li>\n<p>Model ID: \u201c&lt;\u0442\u043e\u0447\u043d\u043e\u0435 \u0438\u043c\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u0437 Strata&gt;\u201d<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f Cline \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p><strong>\u0428\u0430\u0433 4. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Hermes Agent (\u0438 \u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0431\u0430\u0433 \u043a\u043d\u043e\u043f\u043a\u0438 \u201cTest\u201d).<\/strong><\/p>\n<p>\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 Hermes Agent \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043d\u044e\u0430\u043d\u0441\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0432\u0440\u0435\u043c\u044f.<\/p>\n<ol>\n<li>\n<p>\u0413\u0434\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430: \u041d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <em>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u041c\u043e\u0434\u0435\u043b\u044c \u2192 \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c<\/em> \u0430\u0434\u0440\u0435\u0441 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435:<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043b\u0435\u0432\u043e\u043c \u043c\u0435\u043d\u044e \u0432 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u2192 \u0421\u0432\u043e\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0438 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Custom.<\/p>\n<\/li>\n<li>\n<p>\u0423\u043a\u0430\u0436\u0438\u0442\u0435 Endpoint URL: \u201c<a href=\"http:\/\/localhost:47831\/v1%E2%80%9D\" rel=\"noopener nofollow\">http:\/\/localhost:47831\/v1\u201d<\/a><\/p>\n<\/li>\n<li>\n<p>\u041e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 API Mode: \u201cAuto-detect\u201d<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 API Key \u0438\u0437 Strata \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Save <em>(\u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0435 \u043a\u043b\u044e\u0447\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043e\u0447\u0438\u0449\u0430\u0435\u0442\u0441\u044f \u2014 \u0442\u0430\u043a \u0438 \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u0441\u0430\u043c \u043a\u043b\u044e\u0447 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f)<\/em>.<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>\n<p>\u041d\u0435 \u0432\u0435\u0440\u044c\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0443 \u043a\u043d\u043e\u043f\u043a\u0438 \u00abTest\u00bb, \u0435\u0441\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u201cTest\u201d, Hermes \u0432\u044b\u0434\u0430\u0441\u0442 \u043f\u0443\u0433\u0430\u044e\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435:<\/p>\n<\/li>\n<\/ol>\n<blockquote>\n<p><em>Connected to <\/em><a href=\"http:\/\/localhost:47831\/models\" rel=\"noopener nofollow\"><em>http:\/\/localhost:47831\/models<\/em><\/a><em>, but it returned text\/html instead of a JSON model list\u2026<\/em><\/p>\n<\/blockquote>\n<p>\u042d\u0442\u043e \u0431\u0430\u0433 \u0441\u0430\u043c\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 UI Hermes: \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0435 \u043e\u043d\u0430 \u043e\u0442\u0440\u0435\u0437\u0430\u0435\u0442 \u201c\/v1\u201d \u0438 \u0441\u0442\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0430 \u201c<a href=\"http:\/\/localhost:47831\/models%E2%80%9D\" rel=\"noopener nofollow\">http:\/\/localhost:47831\/models\u201d<\/a>, \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0447\u0442\u043e Strata \u043e\u0442\u0434\u0430\u0435\u0442 HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0443 \u0442\u0435\u0441\u0442\u0430: \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u041c\u043e\u0434\u0435\u043b\u044c \u2192 \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u201ccustom (<a href=\"http:\/\/localhost:47831\" rel=\"noopener nofollow\">localhost:47831<\/a>)\u201d, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u043b\u044e\u0431\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u0436\u0438\u0432\u043e\u043c \u0447\u0430\u0442\u0435 \u2014 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u201c\/v1\/chat\/completions\u201d \u0443\u0445\u043e\u0434\u044f\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/p>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u0438 \u0441\u043e\u0432\u0435\u0442\u044b \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0412\u0430\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043b\u0435\u0433\u043a\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043b\u044e\u0431\u0438\u043c\u043e\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \ud83d\ude09<\/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\/1112678\/\">https:\/\/habr.com\/ru\/articles\/1112678\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 Qwen 3.8) \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Strata \u043d\u0430 \u0445\u043e\u0441\u0442-\u043c\u0430\u0448\u0438\u043d\u0435 \u0438 \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0435 \u0438\u0445 \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 VS Code (\u0441 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c Cline) \u0438\u043b\u0438 Hermes Agent, \u043f\u043e\u0441\u043b\u0435 \u0441\u0432\u0435\u0436\u0435\u0433\u043e \u0430\u043f\u0434\u0435\u0439\u0442\u0430 \u0432\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u043c \u043e\u0442\u043a\u0430\u0437\u043e\u043c \u0432\u0441\u0435\u0439 \u0441\u0432\u044f\u0437\u043a\u0438.\u041f\u0440\u0438\u0447\u0435\u043c \u0432\u043d\u0435\u0448\u043d\u0435 \u0432\u0441\u0451 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u043e: API-\u043a\u043b\u044e\u0447 \u0438\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f, \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u201cbad-host\u201d, \u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445 \u0443\u043f\u043e\u0440\u043d\u043e \u0440\u0430\u043f\u043e\u0440\u0442\u0443\u0435\u0442 \u043e \u0441\u0431\u043e\u0435. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0438 \u043a\u0430\u043a \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439.\u0412 \u0447\u0435\u043c \u0441\u0443\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b: \u043e\u0448\u0438\u0431\u043a\u0430 &#171;\u201ccode\u201d: \u201cbad-host\u201d?\u0420\u0430\u043d\u044c\u0448\u0435 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b (\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 NAT \u0447\u0435\u0440\u0435\u0437 \u0448\u043b\u044e\u0437 \u201c10.0.2.2\u201d) \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u043f\u043e\u0440\u0442\u0430 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u0430 \u201chttp:\/\/10.0.2\u201d \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u041f\u043e\u0441\u043b\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Strata \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 \u0437\u0430\u0449\u0438\u0442\u0443 \u043e\u0442 DNS Rebinding (\u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u043c\u0438 \u043f\u0430\u0442\u0447\u0430\u043c\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0432 Ollama \u0438 LM Studio). \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u201cHost\u201d \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430:\u0415\u0441\u043b\u0438 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u201cHost\u201d \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u201clocalhost\u201d \u0438\u043b\u0438 \u201c127.0.0.1\u201d \u2014 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f.\u0415\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u0412\u041c \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u201chttp:\/\/10.0.2\u201d, \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u201cHost: 10.0.2.2:47831\u201d. \u041f\u0440\u043e\u0431\u0440\u043e\u0441 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0445\u043e\u0441\u0442\u0430 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442 \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u0438 Strata \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0440\u0443\u0431\u0438\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u0432\u0435\u0442\u043e\u043c: \u201c\u201d\u201cjson {\u201cerror\u201d:\u201cOpen the local Strata app to use host controls.\u201d,\u201ccode\u201d:\u201cbad-host\u201d} \u201c\u201d\u201d\u041f\u0440\u0430\u0432\u043a\u0430 \u0444\u0430\u0439\u043b\u0430 \u201chosts\u201d \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442: \u041e\u0421 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u201clocalhost\u201d \u043d\u0430 \u201c10.0.2.2\u201d, \u0430 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u201cbad-host\u201d.\u0428\u0430\u0433 1. \u041d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0440\u043e\u0441 \u043f\u043e\u0440\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.\u0427\u0442\u043e\u0431\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0412\u041c \u0441\u0442\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0441\u0442\u0440\u043e\u0433\u043e \u043d\u0430 \u201chttp:\/\/localhost:47831\/v1\u201d (\u0438 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0438 \u00ab\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439\u00bb \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u201cHost\u201d), \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438 \u0438\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 Python. \u0415\u0441\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 Windows, \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0448\u0442\u0430\u0442\u043d\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u201cportproxy\u201d \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u044f\u0434\u0440\u0430. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 (\u201ccmd\u201d) \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0412\u041c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043e\u0434\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=47831 connectaddress=10.0.2.2 connectport=47831\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 \u0438 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u201cnetsh interface portproxy show all\u201d.\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e (\u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u043d\u0435\u0442 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c): netsh interface portproxy delete v4tov4 listenaddress=127.0.0.1 listenport=47831\u0414\u043b\u044f Linux-\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0431\u0435\u0437 \u0444\u043e\u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u201ciptables\u201d \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 \u201cOUTPUT\u201d \u043d\u0430 \u201cDNAT\u201d):sudo sysctl -w net.ipv4.conf.all.route_localnet=1sudo iptables -t nat -A OUTPUT -p tcp -d 127.0.0.1 &#8212;dport 47831 -j DNAT &#8212;to-destination 10.0.2.2:47831sudo iptables -t nat -A POSTROUTING -p tcp -d 10.0.2.2 &#8212;dport 47831 -j MASQUERADE\u0415\u0441\u043b\u0438 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0434\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0442\u043e \u043f\u043e\u0434\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:sudo iptables -t nat -D OUTPUT -p tcp -d 127.0.0.1 &#8212;dport 47831 -j DNAT &#8212;to-destination 10.0.2.2:47831sudo iptables -t nat -D POSTROUTING -p tcp -d 10.0.2.2 &#8212;dport 47831 -j MASQUERADE\u0428\u0430\u0433 2. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 API-\u043a\u043b\u044e\u0447 \u0432 Strata.\u0412 \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u0432\u0440\u043e\u0434\u0435 \u201csk-no-key\u201d \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.\u041d\u0430 \u0445\u043e\u0441\u0442-\u043c\u0430\u0448\u0438\u043d\u0435 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Strata.\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043c\u0435\u043d\u044e &#171;\u0415\u0449\u0435&#187; \u2192 Api.\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 API Key \u0438 \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u0435 \u0442\u043e\u0447\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u201cunsloth_q8_0\u201d).\u0428\u0430\u0433 3. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c VS Code (\u0441 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c Cline).\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b Cline \u2192 Settings \u2192 API Configuration \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:API Provider: \u201cOpenAI Compatible\u201dBase URL: \u201chttp:\/\/localhost:47831\/v1\u201dAPI Key: \u201c&lt;\u0432\u0430\u0448 \u043a\u043b\u044e\u0447 \u0438\u0437 Strata&gt;\u201dModel ID: \u201c&lt;\u0442\u043e\u0447\u043d\u043e\u0435 \u0438\u043c\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u0437 Strata&gt;\u201d\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f Cline \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.\u0428\u0430\u0433 4. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Hermes Agent (\u0438 \u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0431\u0430\u0433 \u043a\u043d\u043e\u043f\u043a\u0438 \u201cTest\u201d).\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 Hermes Agent \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043d\u044e\u0430\u043d\u0441\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0432\u0440\u0435\u043c\u044f.\u0413\u0434\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430: \u041d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u041c\u043e\u0434\u0435\u043b\u044c \u2192 \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0430\u0434\u0440\u0435\u0441 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435:\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043b\u0435\u0432\u043e\u043c \u043c\u0435\u043d\u044e \u0432 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u2192 \u0421\u0432\u043e\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0438 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Custom.\u0423\u043a\u0430\u0436\u0438\u0442\u0435 Endpoint URL: \u201chttp:\/\/localhost:47831\/v1\u201d\u041e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 API Mode: \u201cAuto-detect\u201d\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 API Key \u0438\u0437 Strata \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Save (\u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0435 \u043a\u043b\u044e\u0447\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043e\u0447\u0438\u0449\u0430\u0435\u0442\u0441\u044f \u2014 \u0442\u0430\u043a \u0438 \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u0441\u0430\u043c \u043a\u043b\u044e\u0447 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f).\u041d\u0435 \u0432\u0435\u0440\u044c\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0443 \u043a\u043d\u043e\u043f\u043a\u0438 \u00abTest\u00bb, \u0435\u0441\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u201cTest\u201d, Hermes \u0432\u044b\u0434\u0430\u0441\u0442 \u043f\u0443\u0433\u0430\u044e\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435:Connected to http:\/\/localhost:47831\/models, but it returned text\/html instead of a JSON model list\u2026\u042d\u0442\u043e \u0431\u0430\u0433 \u0441\u0430\u043c\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 UI Hermes: \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0435 \u043e\u043d\u0430 \u043e\u0442\u0440\u0435\u0437\u0430\u0435\u0442 \u201c\/v1\u201d \u0438 \u0441\u0442\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0430 \u201chttp:\/\/localhost:47831\/models\u201d, \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0447\u0442\u043e Strata \u043e\u0442\u0434\u0430\u0435\u0442 HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.\u041f\u0440\u043e\u0441\u0442\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0443 \u0442\u0435\u0441\u0442\u0430: \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u041c\u043e\u0434\u0435\u043b\u044c \u2192 \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u201ccustom (localhost:47831)\u201d, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u043b\u044e\u0431\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u0436\u0438\u0432\u043e\u043c \u0447\u0430\u0442\u0435 \u2014 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u201c\/v1\/chat\/completions\u201d \u0443\u0445\u043e\u0434\u044f\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u0438 \u0441\u043e\u0432\u0435\u0442\u044b \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0412\u0430\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043b\u0435\u0433\u043a\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043b\u044e\u0431\u0438\u043c\u043e\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u044b ;-)\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\/1112678\/<\/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-504928","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/504928","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=504928"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/504928\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=504928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=504928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=504928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}