Providers

Tencent Cloud (TokenHub / TokenPlan)

ติดตั้ง Plugin ผู้ให้บริการอย่างเป็นทางการของ Tencent Cloud เพื่อเข้าถึง Tencent Hy3 ผ่านปลายทางสองรายการ ได้แก่ TokenHub (tencent-tokenhub) และ TokenPlan (tencent-tokenplan) โดยใช้ API ที่เข้ากันได้กับ OpenAI

คุณสมบัติ ค่า
รหัสผู้ให้บริการ tencent-tokenhub, tencent-tokenplan
แพ็กเกจ @openclaw/tencent-provider
ตัวแปรสภาพแวดล้อมการยืนยันตัวตนของ TokenHub TOKENHUB_API_KEY
ตัวแปรสภาพแวดล้อมการยืนยันตัวตนของ TokenPlan TOKENPLAN_API_KEY
แฟล็กเริ่มต้นใช้งาน TokenHub --auth-choice tokenhub-api-key
แฟล็กเริ่มต้นใช้งาน TokenPlan --auth-choice tokenplan-api-key
แฟล็ก CLI โดยตรงของ TokenHub --tokenhub-api-key <key>
แฟล็ก CLI โดยตรงของ TokenPlan --tokenplan-api-key <key>
API เข้ากันได้กับ OpenAI (openai-completions)
URL ฐานของ TokenHub https://tokenhub.tencentmaas.com/v1
URL ฐานส่วนกลางของ TokenHub https://tokenhub-intl.tencentmaas.com/v1 (แทนที่ค่าเดิม)
URL ฐานของ TokenPlan https://api.lkeap.cloud.tencent.com/plan/v3
โมเดลเริ่มต้น tencent-tokenhub/hy3

เริ่มต้นอย่างรวดเร็ว

  • Create a Tencent API key

    สร้างคีย์ API สำหรับ Tencent Cloud TokenHub และ TokenPlan หากคุณเลือกขอบเขตการเข้าถึงแบบจำกัดสำหรับคีย์ ให้รวม hy3 (และ hy3 preview หากคุณวางแผนจะใช้กับ TokenHub) ไว้ในโมเดลที่อนุญาต

  • Run onboarding

    TokenHub onboarding
    openclaw onboard --auth-choice tokenhub-api-key
    TokenHub direct flag
    openclaw onboard --non-interactive \--auth-choice tokenhub-api-key \--tokenhub-api-key "$TOKENHUB_API_KEY"
    TokenPlan onboarding
    openclaw onboard --auth-choice tokenplan-api-key
    TokenPlan direct flag
    openclaw onboard --non-interactive \--auth-choice tokenplan-api-key \--tokenplan-api-key "$TOKENPLAN_API_KEY"
    Env only
    export TOKENHUB_API_KEY=...export TOKENPLAN_API_KEY=...
  • Verify the model

    bash
    openclaw models list --provider tencent-tokenhubopenclaw models list --provider tencent-tokenplan
  • การตั้งค่าแบบไม่โต้ตอบ

    bash
    # TokenHubopenclaw onboard --non-interactive \  --mode local \  --auth-choice tokenhub-api-key \  --tokenhub-api-key "$TOKENHUB_API_KEY" \  --skip-health \  --accept-risk # TokenPlanopenclaw onboard --non-interactive \  --mode local \  --auth-choice tokenplan-api-key \  --tokenplan-api-key "$TOKENPLAN_API_KEY" \  --skip-health \  --accept-risk

    แค็ตตาล็อกในตัว

    การอ้างอิงโมเดล ชื่อ อินพุต บริบท เอาต์พุตสูงสุด หมายเหตุ
    tencent-tokenhub/hy3-preview hy3 preview (TokenHub) ข้อความ 256,000 64,000 รองรับการใช้เหตุผล
    tencent-tokenhub/hy3 hy3 (TokenHub) ข้อความ 256,000 64,000 รองรับการใช้เหตุผล
    tencent-tokenplan/hy3 hy3 (TokenPlan) ข้อความ 256,000 64,000 รองรับการใช้เหตุผล

    hy3 คือโมเดลภาษา MoE ขนาดใหญ่ของ Tencent Hunyuan สำหรับการใช้เหตุผล การทำตามคำสั่งที่มีบริบทยาว โค้ด และเวิร์กโฟลว์ของเอเจนต์ ตัวอย่างที่เข้ากันได้กับ OpenAI ของ Tencent ใช้ hy3 เป็นรหัสโมเดล และรองรับการเรียกใช้เครื่องมือผ่าน chat completions มาตรฐาน รวมถึง reasoning_effort

    การกำหนดค่าขั้นสูง

    Endpoint override

    แค็ตตาล็อกในตัวของ OpenClaw ใช้ปลายทาง https://tokenhub.tencentmaas.com/v1 ของ Tencent Cloud ให้แทนที่ค่านี้เฉพาะเมื่อบัญชีหรือภูมิภาค TokenHub ของคุณต้องใช้ปลายทางอื่น:

    bash
    openclaw config set models.providers.tencent-tokenhub.baseUrl "https://your-endpoint/v1"
    Environment availability for the daemon

    หาก Gateway ทำงานเป็นบริการที่มีการจัดการ (launchd, systemd, Docker) กระบวนการดังกล่าวต้องมองเห็น TOKENHUB_API_KEY และ TOKENPLAN_API_KEY กำหนดค่าเหล่านี้ใน ~/.openclaw/.env หรือผ่าน env.shellEnv เพื่อให้สภาพแวดล้อมการเรียกใช้ของ launchd, systemd หรือ Docker สามารถอ่านค่าได้

    ที่เกี่ยวข้อง

    Was this useful?
    On this page

    On this page