মডেল অ্যাক্সেস করার জন্য অবস্থান নির্দিষ্ট করুন

Google-এর জেনারেটিভ এআই মডেলগুলি নির্দিষ্ট আঞ্চলিক শেষ পয়েন্টগুলি ব্যবহার করে উন্মুক্ত করা হয়৷

Vertex AI পরিষেবা শুরু করার সময়, আপনি আপনার অনুরোধে যে মডেলটি অ্যাক্সেস করছেন তার জন্য আপনি ঐচ্ছিকভাবে শেষ পয়েন্টের অবস্থান নির্দিষ্ট করতে পারেন। আপনি একটি অবস্থান নির্দিষ্ট না করলে, ডিফল্ট হল us-central1 । এই পৃষ্ঠায় পরে উপলব্ধ অবস্থানের তালিকা দেখুন.

Firebase-এ Vertex AI এখনও Vertex AI-এর জন্য গ্লোবাল এন্ডপয়েন্ট সমর্থন করে না।

কোড নমুনা

মনে রাখবেন যে এই নমুনাগুলি একটি মিথুন মডেলের অ্যাক্সেস দেখায়, তবে আপনি একটি Imagen 3 মডেল অ্যাক্সেস করার সময় অবস্থানও নির্দিষ্ট করতে পারেন৷

এই পৃষ্ঠায় পরে উপলব্ধ অবস্থানের তালিকা থেকে অবস্থান কোড (উদাহরণস্বরূপ, europe-west4 ) দিয়ে LOCATION প্রতিস্থাপন করুন।

সুইফট

import FirebaseVertexAI

// Initialize the Vertex AI service
// Specify the endpoint location for the model accessed by your requests
let vertex = VertexAI.vertexAI(location: "LOCATION")

// Create a `GenerativeModel` instance with a model that supports your use case
let model = vertex.generativeModel(modelName: "MODEL_NAME")

Kotlin

// Initialize the Vertex AI service
// Specify the endpoint location for the model accessed by your requests
val vertexAI = Firebase.vertexAI(location = "LOCATION")

// Create a `GenerativeModel` instance with a model that supports your use case
val generativeModel = vertexAI.generativeModel(modelName = "MODEL_NAME")

Java

// Initialize the Vertex AI service
// Specify the endpoint location for the model accessed by your requests
FirebaseVertexAI vertexAI = FirebaseVertexAI.getInstance("LOCATION");

// Create a `GenerativeModel` instance with a model that supports your use case
GenerativeModel gm = vertexAI.generativeModel("MODEL_NAME");

// Use the `GenerativeModelFutures` Java compatibility layer which offers
// support for `ListenableFuture` and Publisher APIs
GenerativeModelFutures model = GenerativeModelFutures.from(gm);

Web

import { initializeApp } from "firebase/app";
import { getVertexAI, getGenerativeModel } from "firebase/vertexai";

// TODO(developer) Replace the following with your app's Firebase configuration
// See: https://firebase.google.com/docs/web/learn-more#config-object
const firebaseConfig = {
  // ...
};

// Initialize FirebaseApp
const firebaseApp = initializeApp(firebaseConfig);

// Initialize the Vertex AI service
// Specify the endpoint location for the model accessed by your requests
const vertexAI = getVertexAI(firebaseApp, { location: 'LOCATION' });

// Create a `GenerativeModel` instance with a model that supports your use case
const model = getGenerativeModel(vertexAI, { model: 'MODEL_NAME' });

Dart

import 'package:firebase_vertexai/firebase_vertexai.dart';
import 'package:firebase_core/firebase_core.dart';

// Initialize FirebaseApp
await Firebase.initializeApp();

// Initialize the Vertex AI service
// Specify the endpoint location for the model accessed by your requests
final vertexAI = await FirebaseVertexAI.instanceFor(location: 'LOCATION');

// Create a `GenerativeModel` instance with a model that supports your use case
final model = vertexAI.generativeModel(model: 'MODEL_NAME');

উপলব্ধ অবস্থান

Google Cloud আঞ্চলিক শেষ পয়েন্ট সংজ্ঞায়িত করতে অঞ্চল ব্যবহার করে। Google Cloud শুধুমাত্র সেই অঞ্চলে গ্রাহকের ডেটা সঞ্চয় করে যা আপনি Vertex AI- তে Generative AI-এর সমস্ত সাধারণ-উপলভ্য বৈশিষ্ট্যগুলির জন্য নির্দিষ্ট করেন৷

ভার্টেক্স এআই -এর জেনারেটিভ এআই নিম্নলিখিত অঞ্চলে পাওয়া যায়। কিছু মডেল এবং/অথবা নির্দিষ্ট সংস্করণ সব স্থানে উপলব্ধ নাও হতে পারে (বিস্তারিত অবস্থানের উপলব্ধতার জন্য, Google Cloud ডকুমেন্টেশন দেখুন)।

মার্কিন যুক্তরাষ্ট্র

  • কলম্বাস, ওহিও ( us-east5 )
  • ডালাস, টেক্সাস ( us-south1 )
  • আইওয়া ( us-central1 )
  • লাস ভেগাস, নেভাদা ( us-west4 )
  • মনকস কর্নার, দক্ষিণ ক্যারোলিনা ( us-east1 )
  • উত্তর ভার্জিনিয়া ( us-east4 )
  • ওরেগন ( us-west1 )

কানাডা

  • মন্ট্রিল ( northamerica-northeast1 )

দক্ষিণ আমেরিকা

  • সাও পাওলো, ব্রাজিল ( southamerica-east1 )

ইউরোপ

  • বেলজিয়াম ( europe-west1 )
  • ফিনল্যান্ড ( europe-north1 )
  • ফ্রাঙ্কফুর্ট, জার্মানি ( europe-west3 )
  • লন্ডন, যুক্তরাজ্য ( europe-west2 2)
  • মাদ্রিদ, স্পেন ( europe-southwest1 )
  • মিলান, ইতালি ( europe-west8 )
  • নেদারল্যান্ডস ( europe-west4 )
  • প্যারিস, ফ্রান্স ( europe-west9 )
  • ওয়ারশ, পোল্যান্ড ( europe-central2 )
  • জুরিখ, সুইজারল্যান্ড ( europe-west6 )

এশিয়া প্যাসিফিক

  • চাংহুয়া কাউন্টি, তাইওয়ান ( asia-east1 )
  • হংকং, চীন ( asia-east2 )
  • মুম্বাই, ভারত ( asia-south1 )
  • সিউল, কোরিয়া ( asia-northeast3 ৩)
  • সিঙ্গাপুর ( asia-southeast1 )
  • সিডনি, অস্ট্রেলিয়া ( australia-southeast1 )
  • টোকিও, জাপান ( asia-northeast1 )

মধ্যপ্রাচ্য

  • দাম্মাম, সৌদি আরব ( me-central2 )
  • দোহা, কাতার ( me-central1 )
  • তেল আবিব, ইজরায়েল ( me-west1 )