|
6 | 6 |
|
7 | 7 | **Bước 2:** Trong menu bên trái, chọn mục **AI Gateway**, sau đó nhấn vào nút **Create an AI Gateway**. |
8 | 8 |
|
9 | | -<figure><img src="../.gitbook/assets/image (5).png" alt=""><figcaption></figcaption></figure> |
| 9 | +<figure><img src="../../../.gitbook/assets/image (5).png" alt=""><figcaption></figcaption></figure> |
10 | 10 |
|
11 | 11 | **Bước 3:** Tại màn hình **Tạo Gateway mới**, vui lòng điền đầy đủ các thông tin sau: |
12 | 12 |
|
13 | 13 | * **AI Gateway Name:** Đặt tên dễ nhớ cho gateway của bạn. Tên này chỉ được chứa các ký tự **a–z, A–Z, 0–9, dấu gạch dưới (\_) hoặc dấu gạch ngang (-)**, và có độ dài từ **5 đến 50 ký tự**. |
14 | 14 | * **Model Provider:** |
15 | 15 | * Chọn nhà cung cấp mô hình AI OpenAI Compatible. |
16 | | - * **Model Type**: Điền loại model (xem tại [MaaS](https://aiplatform.console.vngcloud.vn/models/md-37404b64-0656-4c85-978c-a6e1b84ea8ac) ở portal AI Platform). |
| 16 | + * **Model Type**: Chọn Model Type (xem tại [MaaS](https://aiplatform.console.vngcloud.vn/models/md-37404b64-0656-4c85-978c-a6e1b84ea8ac) ở portal AI Platform). |
17 | 17 | * **Model Endpoint**: Điền URL của model (xem tại [MaaS](https://aiplatform.console.vngcloud.vn/models/md-37404b64-0656-4c85-978c-a6e1b84ea8ac) ở poral AI Platform). |
18 | 18 | * |
19 | 19 |
|
20 | | - <figure><img src="../.gitbook/assets/image (25).png" alt=""><figcaption></figcaption></figure> |
| 20 | + <figure><img src="../../../.gitbook/assets/image (25).png" alt=""><figcaption></figcaption></figure> |
21 | 21 | * **Authentication info**: |
22 | 22 |
|
23 | 23 | * header\_name: Điền `Authorization`. |
24 | 24 | * header\_value: Điền Api Key MaaS ( API Key trong hình được tạo ở [Portal ](https://aiplatform.console.vngcloud.vn/keys)AI Platform). |
25 | 25 |
|
26 | | - <figure><img src="../.gitbook/assets/image (13).png" alt="123"><figcaption></figcaption></figure> |
| 26 | + <figure><img src="../../../.gitbook/assets/image (13).png" alt="123"><figcaption></figcaption></figure> |
27 | 27 | * **Gateway Config:** Mặc định, hệ thống sẽ bật tính năng **Authenticated Gateway.** |
28 | 28 |
|
29 | 29 | **Bước 4**: Chọn Create an AI Gateway, AI Gateway của bạn sẽ được khởi tạo và sẵn sàng để sử dụng. |
30 | 30 |
|
31 | | -<figure><img src="../.gitbook/assets/image (15).png" alt=""><figcaption></figcaption></figure> |
| 31 | +<figure><img src="../../../.gitbook/assets/image (15).png" alt=""><figcaption></figcaption></figure> |
32 | 32 |
|
33 | 33 | **Bước 5**: Sau khi AI Gateway được khởi tạo bạn cần [tạo Token](https://docs.vngcloud.vn/vng-cloud-document/vn/ai-stack/ai-gateway/ai-gateway/lam-viec-voi-authentication-token) để gọi API. |
34 | 34 |
|
35 | 35 | **Bước 6**: Trong mục **Providers & Model**, tìm mô hình AI bạn đã cấu hình. Tại mô hình đó, nhấn vào biểu tượng **Curl command** để lấy câu lệnh mẫu. |
36 | 36 |
|
37 | | -<figure><img src="../.gitbook/assets/image (18).png" alt=""><figcaption></figcaption></figure> |
| 37 | +<figure><img src="../../../.gitbook/assets/image (18).png" alt=""><figcaption></figcaption></figure> |
38 | 38 |
|
39 | 39 | **Bước 7**: Sao chép đoạn lệnh `curl` được hiển thị và thực thi lệnh đó trên máy tính cá nhân của bạn (qua Terminal hoặc Command Prompt). |
40 | 40 |
|
41 | | -<figure><img src="../.gitbook/assets/image (19).png" alt=""><figcaption></figcaption></figure> |
| 41 | +<figure><img src="../../../.gitbook/assets/image (19).png" alt=""><figcaption></figcaption></figure> |
42 | 42 |
|
43 | 43 | Ví dụ: |
44 | 44 |
|
|
0 commit comments