VNAI Pro
Client tools

Hermes Agent

Kết nối Hermes Agent bằng Custom endpoint

Hermes Agent hỗ trợ Custom endpoint tương thích OpenAI. Chuẩn bị key và model theo hướng dẫn chung.

1. Cài Hermes

macOS, Linux hoặc WSL2:

curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

Windows PowerShell:

iex (irm https://hermes-agent.nousresearch.com/install.ps1)

Mở terminal mới sau khi cài.

2. Chạy wizard cấu hình

Thoát phiên chat đang mở, sau đó chạy:

hermes model

Chọn Custom endpoint (self-hosted / VLLM / etc.), rồi điền:

TrườngGiá trị
API base URLhttps://api.vnaipro.app/v1
API keyKey được tạo trên website của hệ thống
Model nameID từ Kiểm tra model

hermes model chạy ngoài chat để thêm endpoint; /model trong chat chỉ chuyển model đã cấu hình.

3. Kiểm tra cấu hình đã lưu

Trên macOS/Linux/WSL2, file là ~/.hermes/config.yaml. Cấu hình Chat Completions tương ứng:

model:  provider: custom  default: YOUR_MODEL_ID  base_url: https://api.vnaipro.app/v1  api_key: YOUR_API_KEY  api_mode: chat_completions

Gộp vào phần model hiện có, thay hai placeholder; không xóa cấu hình tool khác. Trên Windows native, thư mục cài mặc định là %LOCALAPPDATA%\hermes; ưu tiên wizard để lưu đúng profile.

Với model chỉ hỗ trợ giao thức khác, dùng model.api_mode: codex_responses cho Responses hoặc anthropic_messages cho Anthropic Messages. Responses giữ Base URL có /v1; Anthropic dùng URL gốc https://api.vnaipro.app. Chỉ chọn khi group/model hỗ trợ giao thức đó.

4. Thử phiên mới

Chạy hermes, gửi câu hỏi ngắn và yêu cầu đọc một file trong thư mục thử nghiệm. Kiểm tra lịch sử sử dụng trên website. Nếu endpoint vẫn là dịch vụ cũ, kiểm tra model.provider, model.base_url và profile đang chạy. Tool tìm kiếm hoặc dịch vụ khác của Hermes có thể cần key riêng.

Nguồn: Cài đặt, AI providers, Cấu hình model.

Trên trang này