编程助手

cc switch配置codex Hướng Dẫn API

Hướng dẫn cc switch配置codex cho aliapi.me, gồm Base URL tương thích OpenAI, API key, tên model, cấu trúc request và cách xử lý lỗi.

Mục đích

Hướng dẫn cc switch配置codex cho aliapi.me, gồm Base URL tương thích OpenAI, API key, tên model, cấu trúc request và cách xử lý lỗi.

Checklist tích hợp

  • Base URL: https://api.aliapi.me/v1.
  • Authentication: Authorization: Bearer YOUR_API_KEY.
  • Model names should be copied from the aliapi.me model catalog.
  • Endpoint hint: /v1/chat/completions.

Cấu trúc request

{
  "model": "copy-model-name-from-catalog",
  "messages": [
    {"role": "user", "content": "your task here"}
  ]
}

Xử lý lỗi

Start with a minimal chat request, then verify the API key, Base URL, model name, quota, request fields and request logs.

Hình ảnh tham khảo

Hình ảnh đã được mirror trên tài nguyên aliapi.me. Ví dụ endpoint dùng https://api.aliapi.me/v1.

cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch
cc_switch