{"id":468114,"date":"2025-07-22T09:05:21","date_gmt":"2025-07-22T09:05:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=468114"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=468114","title":{"rendered":"<span>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Google Gemini \u0432 \u0431\u0435\u0442\u0435 Xcode 26<\/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<p>\u041d\u0430 Mastodon \u043a\u0442\u043e-\u0442\u043e <a href=\"https:\/\/iosdev.space\/@austinbond\/114672153450134516\" rel=\"noopener noreferrer nofollow\">\u0441\u043f\u0440\u043e\u0441\u0438\u043b<\/a>, \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Google Gemini \u043a \u0431\u0435\u0442\u0435 Xcode 26 \u0432 macOS 26. \u041c\u043e\u0436\u043d\u043e! \u041d\u043e\u2026 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0435\u0439 \u0438 \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432. <\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c9e\/c9a\/5d7\/c9ec9a5d756871039e4b60a9e9f5de51.png\" width=\"892\" height=\"634\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/c9e\/c9a\/5d7\/c9ec9a5d756871039e4b60a9e9f5de51.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c9e\/c9a\/5d7\/c9ec9a5d756871039e4b60a9e9f5de51.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>Google <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/openai#rest\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0430<\/a> \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0439 \u0441 OpenAI API \u0434\u043b\u044f Gemini, \u043d\u043e \u0435\u0433\u043e URL-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u0442 Xcode. \u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043f\u043e\u043b\u0435 URL \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 API, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>https:\/\/api.openai.com\/<\/code>. Xcode \u0443\u0436\u0435 \u0441\u0430\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 <code>v1\/models<\/code> \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0443\u0442\u0438.<\/p>\n<p>\u0423 Gemini \u0436\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <code>https:\/\/generativelanguage.googleapis.com\/v1beta\/openai\/<\/code>, \u0430 \u043d\u0435 <code>https:\/\/generativelanguage.googleapis.com\/v1\/<\/code>. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442. \u041d\u0438\u0436\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Xcode \u0438 \u043f\u0440\u043e\u043a\u0441\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<h2>\u0428\u0430\u0433 1. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Gemini \u0432 Xcode<\/h2>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 <code>Settings<\/code> \u2192 <code>Intelligence<\/code> \u2192 <code>Add a Model Provider<\/code> \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0443:<\/p>\n<ul>\n<li>\n<p>Type: Internet Hosted<\/p>\n<\/li>\n<li>\n<p>URL: <code>https:\/\/generativelanguage.googleapis.com\/<\/code><\/p>\n<\/li>\n<li>\n<p>API Key: Bearer $apiKey (\u0432\u0430\u0448 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 API-\u043a\u043b\u044e\u0447)<\/p>\n<\/li>\n<li>\n<p>API Key Header: Authorization<\/p>\n<\/li>\n<li>\n<p>Description: \u043b\u044e\u0431\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u00abGemini\u00bb<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 <code>Save<\/code> \u0438 \u0437\u0430\u043a\u0440\u043e\u0439\u0442\u0435 Xcode.<\/p>\n<h2>\u0428\u0430\u0433 2. \u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0447\u0435\u0440\u0435\u0437 Proxyman<\/h2>\n<p>\u041d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0443\u0436\u0435\u043d \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043a\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u043b\u0435\u0442\u0443. \u042f \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 <a href=\"https:\/\/proxyman.com\/\" rel=\"noopener noreferrer nofollow\">Proxyman<\/a>. \u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0434\u0435\u0442\u0430\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0451 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435.<\/p>\n<p>Proxyman \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0415\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0448\u0438\u0440\u0435, \u043d\u043e \u0437\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0438\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c. \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u043b\u0435\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 <a href=\"https:\/\/freshbits.fi\/apps\/proxygen\/\" rel=\"noopener noreferrer nofollow\">Proxygen<\/a>. \u042f \u0432\u044b\u0431\u0440\u0430\u043b Proxyman \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u043a \u043a \u043d\u0435\u043c\u0443.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u0435\u0433\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b Xcode \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u043b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b <a href=\"https:\/\/docs.proxyman.com\/scripting\/script\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/a> \u0432 Proxyman, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u0445.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/790\/5c4\/a53\/7905c4a5308b2ff58db9b3536f253bc6.png\" width=\"1017\" height=\"811\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/790\/5c4\/a53\/7905c4a5308b2ff58db9b3536f253bc6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/790\/5c4\/a53\/7905c4a5308b2ff58db9b3536f253bc6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h3>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430 Proxyman<\/h3>\n<p>URL: <code>https:\/\/generativelanguage.googleapis.com\/v1\/<\/code>. \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0432\u0441\u0435 HTP-\u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u043f\u043e\u0434\u043f\u0443\u0442\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e URL. \u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"javascript\">function onRequest(context, url, request) {   request.path = request.path.replace(\"\/v1\/\", \"\/v1beta\/openai\/\");   request.color = 'yellow';   return request; }<\/code><\/pre>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0432\u0441\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a <code>\/v1\/\u2026<\/code> \u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c Google API.<\/p>\n<h2>\u0428\u0430\u0433 3. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0434\u0435\u043b\u0435\u0439 Gemini<\/h2>\n<p>\u0421\u043d\u043e\u0432\u0430 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Xcode \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 <code>Settings<\/code> \u2192 <code>Intelligence<\/code> \u2192 <code>Gemini<\/code>. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c59\/af2\/7e7\/c59af27e76ad12e15d3f7adf77652c4c.png\" width=\"892\" height=\"634\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/c59\/af2\/7e7\/c59af27e76ad12e15d3f7adf77652c4c.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c59\/af2\/7e7\/c59af27e76ad12e15d3f7adf77652c4c.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h2>\u0428\u0430\u0433 4. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Gemini \u0432 Xcode<\/h2>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u043e\u0432\u043e\u0435 Swift-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u0442\u043a\u0440\u044b\u043b <code>ContentView.swift<\/code>, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b \u043c\u043e\u0434\u0435\u043b\u044c Gemini 2.5 Flash \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u043d\u0435\u043c\u0435\u0446\u043a\u0438\u0439 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438: \u00abMuch AI\u00bb, \u00abSo Gemini\u00bb. \u042f\u0437\u044b\u043a\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c!<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/323\/af9\/e60\/323af9e60fc2ccd1a974dd0bb0a1e71b.png\" width=\"1646\" height=\"1166\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/323\/af9\/e60\/323af9e60fc2ccd1a974dd0bb0a1e71b.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/323\/af9\/e60\/323af9e60fc2ccd1a974dd0bb0a1e71b.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h2>\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u044f<\/h2>\n<ul>\n<li>\n<p>Proxyman \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 Xcode, \u0438\u043d\u0430\u0447\u0435 \u0441\u0445\u0435\u043c\u0430 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0431\u0435\u0442\u0430-\u0432\u0435\u0440\u0441\u0438\u044f\u0445 Xcode \u0434\u043e\u0431\u0430\u0432\u044f\u0442 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 LLM. \u0421\u043a\u0440\u0435\u0441\u0442\u0438\u043c \u043f\u0430\u043b\u044c\u0446\u044b!<\/p>\n<\/li>\n<\/ul>\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\/929756\/\"> https:\/\/habr.com\/ru\/articles\/929756\/<\/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<p>\u041d\u0430 Mastodon \u043a\u0442\u043e-\u0442\u043e <a href=\"https:\/\/iosdev.space\/@austinbond\/114672153450134516\" rel=\"noopener noreferrer nofollow\">\u0441\u043f\u0440\u043e\u0441\u0438\u043b<\/a>, \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Google Gemini \u043a \u0431\u0435\u0442\u0435 Xcode 26 \u0432 macOS 26. \u041c\u043e\u0436\u043d\u043e! \u041d\u043e\u2026 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0435\u0439 \u0438 \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>Google <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/openai#rest\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0430<\/a> \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0439 \u0441 OpenAI API \u0434\u043b\u044f Gemini, \u043d\u043e \u0435\u0433\u043e URL-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u0442 Xcode. \u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043f\u043e\u043b\u0435 URL \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 API, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>https:\/\/api.openai.com\/<\/code>. Xcode \u0443\u0436\u0435 \u0441\u0430\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 <code>v1\/models<\/code> \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0443\u0442\u0438.<\/p>\n<p>\u0423 Gemini \u0436\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <code>https:\/\/generativelanguage.googleapis.com\/v1beta\/openai\/<\/code>, \u0430 \u043d\u0435 <code>https:\/\/generativelanguage.googleapis.com\/v1\/<\/code>. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442. \u041d\u0438\u0436\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Xcode \u0438 \u043f\u0440\u043e\u043a\u0441\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<h2>\u0428\u0430\u0433 1. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Gemini \u0432 Xcode<\/h2>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 <code>Settings<\/code> \u2192 <code>Intelligence<\/code> \u2192 <code>Add a Model Provider<\/code> \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0443:<\/p>\n<ul>\n<li>\n<p>Type: Internet Hosted<\/p>\n<\/li>\n<li>\n<p>URL: <code>https:\/\/generativelanguage.googleapis.com\/<\/code><\/p>\n<\/li>\n<li>\n<p>API Key: Bearer $apiKey (\u0432\u0430\u0448 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 API-\u043a\u043b\u044e\u0447)<\/p>\n<\/li>\n<li>\n<p>API Key Header: Authorization<\/p>\n<\/li>\n<li>\n<p>Description: \u043b\u044e\u0431\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u00abGemini\u00bb<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 <code>Save<\/code> \u0438 \u0437\u0430\u043a\u0440\u043e\u0439\u0442\u0435 Xcode.<\/p>\n<h2>\u0428\u0430\u0433 2. \u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0447\u0435\u0440\u0435\u0437 Proxyman<\/h2>\n<p>\u041d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0443\u0436\u0435\u043d \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043a\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u043b\u0435\u0442\u0443. \u042f \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 <a href=\"https:\/\/proxyman.com\/\" rel=\"noopener noreferrer nofollow\">Proxyman<\/a>. \u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0434\u0435\u0442\u0430\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0451 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435.<\/p>\n<p>Proxyman \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0415\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0448\u0438\u0440\u0435, \u043d\u043e \u0437\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0438\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c. \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u043b\u0435\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 <a href=\"https:\/\/freshbits.fi\/apps\/proxygen\/\" rel=\"noopener noreferrer nofollow\">Proxygen<\/a>. \u042f \u0432\u044b\u0431\u0440\u0430\u043b Proxyman \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u043a \u043a \u043d\u0435\u043c\u0443.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u0435\u0433\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b Xcode \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u043b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b <a href=\"https:\/\/docs.proxyman.com\/scripting\/script\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/a> \u0432 Proxyman, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u0445.<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430 Proxyman<\/h3>\n<p>URL: <code>https:\/\/generativelanguage.googleapis.com\/v1\/<\/code>. \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0432\u0441\u0435 HTP-\u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u043f\u043e\u0434\u043f\u0443\u0442\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e URL. \u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"javascript\">function onRequest(context, url, request) {   request.path = request.path.replace(\"\/v1\/\", \"\/v1beta\/openai\/\");   request.color = 'yellow';   return request; }<\/code><\/pre>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0432\u0441\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a <code>\/v1\/\u2026<\/code> \u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c Google API.<\/p>\n<h2>\u0428\u0430\u0433 3. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0434\u0435\u043b\u0435\u0439 Gemini<\/h2>\n<p>\u0421\u043d\u043e\u0432\u0430 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Xcode \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 <code>Settings<\/code> \u2192 <code>Intelligence<\/code> \u2192 <code>Gemini<\/code>. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439.<\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u0428\u0430\u0433 4. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Gemini \u0432 Xcode<\/h2>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u043e\u0432\u043e\u0435 Swift-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u0442\u043a\u0440\u044b\u043b <code>ContentView.swift<\/code>, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b \u043c\u043e\u0434\u0435\u043b\u044c Gemini 2.5 Flash \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u043d\u0435\u043c\u0435\u0446\u043a\u0438\u0439 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438: \u00abMuch AI\u00bb, \u00abSo Gemini\u00bb. \u042f\u0437\u044b\u043a\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c!<\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u044f<\/h2>\n<ul>\n<li>\n<p>Proxyman \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 Xcode, \u0438\u043d\u0430\u0447\u0435 \u0441\u0445\u0435\u043c\u0430 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0431\u0435\u0442\u0430-\u0432\u0435\u0440\u0441\u0438\u044f\u0445 Xcode \u0434\u043e\u0431\u0430\u0432\u044f\u0442 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 LLM. \u0421\u043a\u0440\u0435\u0441\u0442\u0438\u043c \u043f\u0430\u043b\u044c\u0446\u044b!<\/p>\n<\/li>\n<\/ul>\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\/929756\/\"> https:\/\/habr.com\/ru\/articles\/929756\/<\/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-468114","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/468114","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=468114"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/468114\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=468114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=468114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=468114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}