{"id":452719,"date":"2025-03-22T03:00:49","date_gmt":"2025-03-22T03:00:49","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=452719"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=452719","title":{"rendered":"<span>Cohere Command \u2014 \u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, <a href=\"https:\/\/github.com\/tripolskypetr\/agent-swarm-kit\/blob\/master\/demo\/cohere-token-rotate\/src\/logic\/completion\/cohere.completion.ts\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432 \u044d\u0442\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a><\/p>\n<\/blockquote>\n<p>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u044f \u0438\u0441\u043a\u0430\u043b \u043c\u043e\u0434\u0435\u043b\u044c, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u043e\u0447\u0435\u043d\u043d\u0443\u044e \u043f\u043e\u0434 \u0432\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0438\u043d\u0442\u0435\u0433\u0438\u0440\u0430\u0446\u0438\u0439. \u041a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u0430 \u044f\u0432\u043b\u044f\u043b\u043e\u0441\u044c \u043c\u0438\u043d\u0430\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0430\u0446\u0438\u0439 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0436\u0435\u043b\u0435\u0437\u0430 \u0441 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0440\u044b\u043d\u043a\u0430<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/27a\/658\/800\/27a6588000b861ec4a3c713f4e911165.png\" alt=\"https:\/\/huggingface.co\/tripolskypetr\/command_r_gguf\" title=\"https:\/\/huggingface.co\/tripolskypetr\/command_r_gguf\" width=\"1198\" height=\"598\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/27a\/658\/800\/27a6588000b861ec4a3c713f4e911165.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/huggingface.co\/tripolskypetr\/command_r_gguf\" rel=\"noopener noreferrer nofollow\">https:\/\/huggingface.co\/tripolskypetr\/command_r_gguf<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u043e\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0443 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c\u044e 5 \u0442\u044b\u0441\u044f\u0447 \u0434\u043e\u043b\u043b\u0430\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0435\u0449\u0451 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0437\u0442\u0438 \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0443, \u0442\u0430\u043a\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441 \u043d\u0435\u043b\u044c\u0437\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/p>\n<p>\u0411\u044b\u043b\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430: \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0436\u0435\u043b\u0435\u0437\u043e. \u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u043e\u0444\u0438\u0441 \u0443\u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u043e\u0432\u0430\u043d \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0441 32\u0413\u0411 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430\u043c\u0438 RTX 3060 \u0441 12\u0413\u0411 \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u0438\u0441\u043a\u0430<\/h2>\n<p>\u0412 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 ollama \u0431\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u044c <a href=\"https:\/\/ollama.com\/oybekdevuz\/command-r\" rel=\"noopener noreferrer nofollow\">command-r<\/a>. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e, <a href=\"https:\/\/github.com\/ollama\/ollama\/issues\/9680#issuecomment-2742827704\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u043d\u0435\u0439 \u0431\u044b\u043b\u0438 \u0441\u043b\u043e\u043c\u0430\u043d\u044b<\/a>, \u043e\u0434\u043d\u0430\u043a\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 issues \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0440\u0443\u0433\u043e\u043d\u044c, \u0431\u044b\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0430 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043f\u043e\u0447\u0438\u043d\u0438\u0442\u044c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/db9\/953\/ba6\/db9953ba6398d2e20d7b9b361bc1a1ab.png\" alt=\"ollama run oybekdevuz\/command-r\" title=\"ollama run oybekdevuz\/command-r\" width=\"1369\" height=\"593\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/db9\/953\/ba6\/db9953ba6398d2e20d7b9b361bc1a1ab.png\"\/><\/p>\n<div><figcaption>ollama run oybekdevuz\/command-r<\/figcaption><\/div>\n<\/figure>\n<p>\u0418 \u043c\u043e\u0434\u0435\u043b\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0430\u0441\u044c, \u0437\u0430\u043d\u044f\u0432 90% \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430. \u0412\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u0431\u0435\u0437 \u0442\u043e\u0440\u043c\u043e\u0437\u043e\u0432 \u0438 \u0433\u0430\u043b\u044e\u043d\u043e\u0432, \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u044b. \u042d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430\u0448\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0436\u0435\u043b\u0435\u0437\u043e<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/007\/361\/332\/00736133279d5105229dfcc7bcee0111.png\" alt=\"\u0412\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u0442\u043e\u0432 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\" title=\"\u0412\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u0442\u043e\u0432 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\" width=\"814\" height=\"365\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/007\/361\/332\/00736133279d5105229dfcc7bcee0111.png\"\/><\/p>\n<div><figcaption>\u0412\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u0442\u043e\u0432 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0432\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u0415\u0441\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f \u0441 OpenAI: \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434 \u0432\u044b\u0437\u043e\u0432 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 API, \u043b\u044e\u0431\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u0412 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u043f\u043b\u044e\u0441\u044b: \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0447\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e, \u0435\u0441\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0438\u0448\u0435\u0442, \u0447\u0442\u043e \u0442\u043e\u0432\u0430\u0440 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443, \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442\u0430-\u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0431\u044b\u043b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d HTTP \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<h3>\u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438?<\/h3>\n<p>\u0423 <code>cohere<\/code>, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f LLM, \u043f\u043e\u043c\u0438\u043c\u043e \u043e\u0431\u043b\u0430\u043a\u0430, \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u0432 \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u0435. \u042d\u0442\u043e \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c GGUF \u043e\u0442 GPT-4o \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. \u0412 \u0438\u0442\u043e\u0433\u0435, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e \u043e\u0431\u043b\u0430\u043a\u043e \u043c\u044b \u043d\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0d2\/d7a\/ca5\/0d2d7aca56a5c73392adf3a2eed420a1.png\" alt=\"https:\/\/docs.cohere.com\/docs\/rate-limits\" title=\"https:\/\/docs.cohere.com\/docs\/rate-limits\" width=\"954\" height=\"1033\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0d2\/d7a\/ca5\/0d2d7aca56a5c73392adf3a2eed420a1.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/docs.cohere.com\/docs\/rate-limits\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.cohere.com\/docs\/rate-limits<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0423 <code>cohere <\/code> \u0435\u0441\u0442\u044c free tier \u043d\u0430 20 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430 api key. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0438\u0432\u0435\u0442 trial \u0442\u043e\u043a\u0435\u043d \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4ba\/84d\/e77\/4ba84de774c07880b143fecb22adfe43.png\" alt=\"https:\/\/dashboard.cohere.com\/api-keys\" title=\"https:\/\/dashboard.cohere.com\/api-keys\" width=\"1060\" height=\"882\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4ba\/84d\/e77\/4ba84de774c07880b143fecb22adfe43.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/dashboard.cohere.com\/api-keys\" rel=\"noopener noreferrer nofollow\">https:\/\/dashboard.cohere.com\/api-keys<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0426\u0435\u043d\u0430 \u0440\u0430\u0434\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u043c\u043e\u043a\u0440\u0430\u0442\u0438\u0447\u043d\u0430\u044f, \u0447\u0435\u043c \u0432 OpenAi. \u041e\u0434\u043d\u0430\u043a\u043e, \u044d\u0442\u043e \u043d\u0435 \u0442\u043e, \u043f\u0440\u043e \u0447\u0442\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e: <strong>\u0410 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u0442\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432?<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/693\/8d4\/59f\/6938d459f317a071753884e372fb66d6.png\" alt=\"https:\/\/cohere.com\/pricing\" title=\"https:\/\/cohere.com\/pricing\" width=\"1465\" height=\"846\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/693\/8d4\/59f\/6938d459f317a071753884e372fb66d6.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/cohere.com\/pricing\" rel=\"noopener noreferrer nofollow\">https:\/\/cohere.com\/pricing<\/a><\/figcaption><\/div>\n<\/figure>\n<h2>\u0412\u0435\u0441\u0451\u043b\u0430\u044f \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c<\/h2>\n<p>\u041d\u0430\u0448 \u0434\u0432\u0438\u0436\u043e\u043a \u0440\u043e\u044f \u0430\u0433\u0435\u043d\u0442\u043e\u0432, \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 LLM, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0435\u0440: \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0432\u044b\u0441\u043a\u043e\u0447\u0438\u0442\u044c \u0438\u0437 Yandex Cloud \u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430, \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u0432\u0437\u0432\u0438\u043d\u0442\u0438\u0442 \u0446\u0435\u043d\u0443 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438<\/p>\n<pre><code class=\"typescript\">import { Adapter, addCompletion, RoundRobin } from \"agent-swarm-kit\"; import { CompletionName } from \"..\/enum\/CompletionName\"; import { CohereClientV2 } from \"cohere-ai\";  const getCohere = (token: string) =&gt;   new CohereClientV2({     token,   });  const COHERE_TOKENS = [process.env.COHERE_API_KEY, \/* \u0412\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c :-) *\/];  addCompletion({   completionName: CompletionName.CohereCompletion,   getCompletion: RoundRobin.create(COHERE_TOKENS, (apiKey) =&gt;     Adapter.fromCohereClientV2(getCohere(apiKey), \"command-r-08-2024\")   ), }); <\/code><\/pre>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043e\u043c\u0438\u043c\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 command-r \u0432 \u043e\u0431\u043b\u0430\u043a\u0435, \u0432 \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u0434\u043b\u044f Ollama<\/p>\n<pre><code class=\"typescript\">import { Adapter, addCompletion } from \"agent-swarm-kit\"; import { CompletionName } from \"..\/enum\/CompletionName\"; import { singleshot } from \"functools-kit\"; import { Ollama } from \"ollama\";  const getOllama = singleshot(   () =&gt; new Ollama({ host: \"http:\/\/127.0.0.1:11434\" }) );  addCompletion({   completionName: CompletionName.OllamaCompletion,   getCompletion: Adapter.fromOllama(getOllama(), \"oybekdevuz\/command-r\", \"\"), }); <\/code><\/pre>\n<p>\u0418 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u0434\u043b\u044f LMStudio. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e, GGUF \u043e\u0431\u0440\u0430\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u044b\u043b \u0432\u044b\u0433\u0440\u0443\u0436\u0435\u043d \u0432 <a href=\"https:\/\/huggingface.co\/tripolskypetr\/command_r_gguf\" rel=\"noopener noreferrer nofollow\">HuggingFace \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435<\/a>, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0442\u0435\u043c, \u043a\u0442\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u044b\u0448\u043a\u043e\u0439, \u0430 \u043d\u0435 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438<\/p>\n<pre><code class=\"typescript\">import { Adapter, addCompletion } from \"agent-swarm-kit\"; import { singleshot } from \"functools-kit\"; import OpenAI from \"openai\"; import { CompletionName } from \"..\/enum\/CompletionName\";  const getOpenAI = singleshot(   () =&gt; new OpenAI({ baseURL: \"http:\/\/127.0.0.1:1234\/v1\", apiKey: \"noop\" }) );  addCompletion({   completionName: CompletionName.LMStudioCompletion,   getCompletion: Adapter.fromLMStudio(getOpenAI(), \"command_r_gguf\"), }); <\/code><\/pre>\n<p>\u041e\u0442 \u0441\u0435\u0431\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044e, \u0447\u0442\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0432\u0435\u0434\u0443\u0442 \u0441\u0435\u0431\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043b\u044e\u0441, \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u043d\u0435 \u0437\u043d\u0430\u044e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0435\u0449\u0451 \u0442\u0430\u043a\u0430\u044f \u0432\u0435\u0441\u0435\u043b\u0430\u044f \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043f\u0440\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442&#8230;<\/p>\n<h2>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/h2>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 <code>cohere <\/code>\u043c\u043e\u044f \u0432\u0435\u0441\u0435\u043b\u0430\u044f \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u0433\u0440\u0443\u0441\u0442\u043d\u043e\u0439 \u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u043e\u0439 \u043f\u043e \u0444\u0438\u043d\u0430\u043d\u0441\u0430\u043c \ud83d\ude41<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/893232\/\"> https:\/\/habr.com\/ru\/articles\/893232\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, <a href=\"https:\/\/github.com\/tripolskypetr\/agent-swarm-kit\/blob\/master\/demo\/cohere-token-rotate\/src\/logic\/completion\/cohere.completion.ts\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432 \u044d\u0442\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a><\/p>\n<\/blockquote>\n<p>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u044f \u0438\u0441\u043a\u0430\u043b \u043c\u043e\u0434\u0435\u043b\u044c, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u043e\u0447\u0435\u043d\u043d\u0443\u044e \u043f\u043e\u0434 \u0432\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0438\u043d\u0442\u0435\u0433\u0438\u0440\u0430\u0446\u0438\u0439. \u041a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u0430 \u044f\u0432\u043b\u044f\u043b\u043e\u0441\u044c \u043c\u0438\u043d\u0430\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0430\u0446\u0438\u0439 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0436\u0435\u043b\u0435\u0437\u0430 \u0441 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0440\u044b\u043d\u043a\u0430<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/huggingface.co\/tripolskypetr\/command_r_gguf\" rel=\"noopener noreferrer nofollow\">https:\/\/huggingface.co\/tripolskypetr\/command_r_gguf<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u043e\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0443 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c\u044e 5 \u0442\u044b\u0441\u044f\u0447 \u0434\u043e\u043b\u043b\u0430\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0435\u0449\u0451 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0437\u0442\u0438 \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0443, \u0442\u0430\u043a\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441 \u043d\u0435\u043b\u044c\u0437\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/p>\n<p>\u0411\u044b\u043b\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430: \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0436\u0435\u043b\u0435\u0437\u043e. \u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u043e\u0444\u0438\u0441 \u0443\u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u043e\u0432\u0430\u043d \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0441 32\u0413\u0411 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430\u043c\u0438 RTX 3060 \u0441 12\u0413\u0411 \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u0438\u0441\u043a\u0430<\/h2>\n<p>\u0412 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 ollama \u0431\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u044c <a href=\"https:\/\/ollama.com\/oybekdevuz\/command-r\" rel=\"noopener noreferrer nofollow\">command-r<\/a>. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e, <a href=\"https:\/\/github.com\/ollama\/ollama\/issues\/9680#issuecomment-2742827704\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u043d\u0435\u0439 \u0431\u044b\u043b\u0438 \u0441\u043b\u043e\u043c\u0430\u043d\u044b<\/a>, \u043e\u0434\u043d\u0430\u043a\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 issues \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0440\u0443\u0433\u043e\u043d\u044c, \u0431\u044b\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0430 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043f\u043e\u0447\u0438\u043d\u0438\u0442\u044c.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>ollama run oybekdevuz\/command-r<\/figcaption><\/div>\n<\/figure>\n<p>\u0418 \u043c\u043e\u0434\u0435\u043b\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0430\u0441\u044c, \u0437\u0430\u043d\u044f\u0432 90% \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430. \u0412\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u0431\u0435\u0437 \u0442\u043e\u0440\u043c\u043e\u0437\u043e\u0432 \u0438 \u0433\u0430\u043b\u044e\u043d\u043e\u0432, \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u044b. \u042d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430\u0448\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0436\u0435\u043b\u0435\u0437\u043e<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0412\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u0442\u043e\u0432 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0432\u044b\u0437\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u0415\u0441\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f \u0441 OpenAI: \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434 \u0432\u044b\u0437\u043e\u0432 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 API, \u043b\u044e\u0431\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u0412 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u043f\u043b\u044e\u0441\u044b: \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0447\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e, \u0435\u0441\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0438\u0448\u0435\u0442, \u0447\u0442\u043e \u0442\u043e\u0432\u0430\u0440 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443, \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442\u0430-\u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0431\u044b\u043b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d HTTP \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<h3>\u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438?<\/h3>\n<p>\u0423 <code>cohere<\/code>, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f LLM, \u043f\u043e\u043c\u0438\u043c\u043e \u043e\u0431\u043b\u0430\u043a\u0430, \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u0432 \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u0435. \u042d\u0442\u043e \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c GGUF \u043e\u0442 GPT-4o \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. \u0412 \u0438\u0442\u043e\u0433\u0435, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e \u043e\u0431\u043b\u0430\u043a\u043e \u043c\u044b \u043d\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/docs.cohere.com\/docs\/rate-limits\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.cohere.com\/docs\/rate-limits<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0423 <code>cohere <\/code> \u0435\u0441\u0442\u044c free tier \u043d\u0430 20 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430 api key. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0438\u0432\u0435\u0442 trial \u0442\u043e\u043a\u0435\u043d \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/dashboard.cohere.com\/api-keys\" rel=\"noopener noreferrer nofollow\">https:\/\/dashboard.cohere.com\/api-keys<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0426\u0435\u043d\u0430 \u0440\u0430\u0434\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u043c\u043e\u043a\u0440\u0430\u0442\u0438\u0447\u043d\u0430\u044f, \u0447\u0435\u043c \u0432 OpenAi. \u041e\u0434\u043d\u0430\u043a\u043e, \u044d\u0442\u043e \u043d\u0435 \u0442\u043e, \u043f\u0440\u043e \u0447\u0442\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e: <strong>\u0410 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u0442\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432?<\/strong><\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/cohere.com\/pricing\" rel=\"noopener noreferrer nofollow\">https:\/\/cohere.com\/pricing<\/a><\/figcaption><\/div>\n<\/figure>\n<h2>\u0412\u0435\u0441\u0451\u043b\u0430\u044f \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c<\/h2>\n<p>\u041d\u0430\u0448 \u0434\u0432\u0438\u0436\u043e\u043a \u0440\u043e\u044f \u0430\u0433\u0435\u043d\u0442\u043e\u0432, \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 LLM, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0435\u0440: \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0432\u044b\u0441\u043a\u043e\u0447\u0438\u0442\u044c \u0438\u0437 Yandex Cloud \u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430, \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u0432\u0437\u0432\u0438\u043d\u0442\u0438\u0442 \u0446\u0435\u043d\u0443 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438<\/p>\n<pre><code class=\"typescript\">import { Adapter, addCompletion, RoundRobin } from \"agent-swarm-kit\"; import { CompletionName } from \"..\/enum\/CompletionName\"; import { CohereClientV2 } from \"cohere-ai\";  const getCohere = (token: string) =&gt;   new CohereClientV2({     token,   });  const COHERE_TOKENS = [process.env.COHERE_API_KEY, \/* \u0412\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c :-) *\/];  addCompletion({   completionName: CompletionName.CohereCompletion,   getCompletion: RoundRobin.create(COHERE_TOKENS, (apiKey) =&gt;     Adapter.fromCohereClientV2(getCohere(apiKey), \"command-r-08-2024\")   ), }); <\/code><\/pre>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043e\u043c\u0438\u043c\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 command-r \u0432 \u043e\u0431\u043b\u0430\u043a\u0435, \u0432 \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u0434\u043b\u044f Ollama<\/p>\n<pre><code class=\"typescript\">import { Adapter, addCompletion } from \"agent-swarm-kit\"; import { CompletionName } from \"..\/enum\/CompletionName\"; import { singleshot } from \"functools-kit\"; import { Ollama } from \"ollama\";  const getOllama = singleshot(   () =&gt; new Ollama({ host: \"http:\/\/127.0.0.1:11434\" }) );  addCompletion({   completionName: CompletionName.OllamaCompletion,   getCompletion: Adapter.fromOllama(getOllama(), \"oybekdevuz\/command-r\", \"\"), }); <\/code><\/pre>\n<p>\u0418 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u0434\u043b\u044f LMStudio. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e, GGUF \u043e\u0431\u0440\u0430\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u044b\u043b \u0432\u044b\u0433\u0440\u0443\u0436\u0435\u043d \u0432 <a href=\"https:\/\/huggingface.co\/tripolskypetr\/command_r_gguf\" rel=\"noopener noreferrer nofollow\">HuggingFace \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435<\/a>, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0442\u0435\u043c, \u043a\u0442\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u044b\u0448\u043a\u043e\u0439, \u0430 \u043d\u0435 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438<\/p>\n<pre><code class=\"typescript\">import { Adapter, addCompletion } from \"agent-swarm-kit\"; import { singleshot } from \"functools-kit\"; import OpenAI from \"openai\"; import { CompletionName } from \"..\/enum\/CompletionName\";  const getOpenAI = singleshot(   () =&gt; new OpenAI({ baseURL: \"http:\/\/127.0.0.1:1234\/v1\", apiKey: \"noop\" }) );  addCompletion({   completionName: CompletionName.LMStudioCompletion,   getCompletion: Adapter.fromLMStudio(getOpenAI(), \"command_r_gguf\"), }); <\/code><\/pre>\n<p>\u041e\u0442 \u0441\u0435\u0431\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044e, \u0447\u0442\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0432\u0435\u0434\u0443\u0442 \u0441\u0435\u0431\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043b\u044e\u0441, \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u043d\u0435 \u0437\u043d\u0430\u044e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0435\u0449\u0451 \u0442\u0430\u043a\u0430\u044f \u0432\u0435\u0441\u0435\u043b\u0430\u044f \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043f\u0440\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442&#8230;<\/p>\n<h2>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/h2>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 <code>cohere <\/code>\u043c\u043e\u044f \u0432\u0435\u0441\u0435\u043b\u0430\u044f \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u0433\u0440\u0443\u0441\u0442\u043d\u043e\u0439 \u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u043e\u0439 \u043f\u043e \u0444\u0438\u043d\u0430\u043d\u0441\u0430\u043c \ud83d\ude41<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/893232\/\"> https:\/\/habr.com\/ru\/articles\/893232\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-452719","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452719","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=452719"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452719\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=452719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=452719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}