คู่มือเชื่อมต่อ agent
ใช้ Continue CLI กับ WaveSpeed LLM API
คู่มือนี้แสดงวิธีเชื่อมต่อ Continue CLI กับ WaveSpeed AI ด้วย ~/.continue/config.yaml, chat completions ที่เข้ากันได้กับ OpenAI, /v1/chat/completions, base URL https://llm.wavespeed.ai/v1 และโมเดลเริ่มต้น deepseek/deepseek-v4.1-flash-1017 คัดลอก config ด้านบน export API key รัน agent แล้วตรวจสอบ request ใน Logs
สร้าง access key ของ WaveSpeed
export key ที่ต้องใช้ไว้ในเครื่อง
วาง config ลงใน
~/.continue/config.yamlรัน cn แล้วตรวจสอบ Logs
setup Continue CLI นี้ตั้งค่าอะไรบ้าง
Protocol
chat completions ที่เข้ากันได้กับ OpenAI
Endpoint
/v1/chat/completions
โมเดล
deepseek/deepseek-v4.1-flash-1017
config พร้อมคัดลอกด้านบนคือไฟล์ Continue CLI เพียงไฟล์เดียวที่ต้องแก้ไขสำหรับ setup ที่แนะนำ: ~/.continue/config.yaml เก็บ API key ไว้ใน shell environment เพื่อไม่ให้ถูก commit เข้า repository
การแก้ปัญหา
API key ไม่ถูกอ่าน
export WAVESPEED_API_KEY ใน shell เดียวกับที่ใช้รัน Continue CLI หากใช้ shell profile ให้ reload terminal ก่อนเริ่ม agent
request ล้มเหลวด้วย error ของ protocol หรือ endpoint
ตรวจสอบว่า Continue CLI ใช้ chat completions ที่เข้ากันได้กับ OpenAI และ endpoint /v1/chat/completions ความไม่ตรงกันของ protocol เป็นสาเหตุที่พบบ่อยที่สุดของ error 404 หรือ payload
โมเดลที่เลือกใช้งานไม่ได้
ยืนยันว่า model id มีอยู่ใน WaveSpeed Models แล้ววาง id ที่ตรงกันลงใน ~/.continue/config.yaml คุณสามารถเริ่มจากโมเดลเริ่มต้นที่แสดงในหน้านี้
ไม่เห็น request ใน Logs
ตรวจสอบว่า Continue CLI ใช้ WaveSpeed base URL และ API key ปัจจุบันของคุณ จากนั้นส่ง prompt ใหม่จาก agent ในเครื่องแล้ว refresh Logs
คู่มือ Continue CLI นี้แสดงในผลค้นหาได้ไหม?
ได้ หน้านี้ถูกสร้างเป็นคู่มือ setup ที่ index ได้ สำหรับผู้ใช้ที่ค้นหา Continue CLI custom provider, endpoint ที่เข้ากันได้กับ OpenAI, base URL และ workflow การตั้งค่า agent ในเครื่อง