felo-cli

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Use this skill for Felo Open Platform chat workflows in this repository.
Prefer project tools in this order:
  1. CLI:
    npx -y @willh/felo-cli --json "<query>"
    (always use
    --json
    when retrieving content so the full structured output is preserved).
  2. SDK:
    createFeloClient()
    /
    feloChat()
    from
    src/felo-client.ts
    when programmatic integration is needed.
  3. Direct API call only when validating protocol-level behavior.
For direct HTTP reference, use
POST https://openapi.felo.ai/v2/chat
with:
  • Environment variable:
    FELO_API_KEY
  • Authorization: Bearer <FELO_API_KEY>
  • Content-Type: application/json
  • Body
    { "query": "<string>" }
    where
    query
    is 1..2000 characters
Handle success/error payloads and rate-limit headers using references/api-contract.md and references/workflow.md.
本仓库中的该技能用于 Felo 开放平台的聊天工作流。
请按以下优先级选择项目工具:
  1. CLI:
    npx -y @willh/felo-cli --json "<query>"
    (获取内容时始终使用
    --json
    参数,以保留完整的结构化输出)。
  2. SDK:需要进行编程集成时,使用
    src/felo-client.ts
    中的
    createFeloClient()
    /
    feloChat()
    方法。
  3. 仅在验证协议层行为时才直接调用 API。
直接 HTTP 调用参考:使用
POST https://openapi.felo.ai/v2/chat
请求,携带以下信息:
  • 环境变量:
    FELO_API_KEY
  • Authorization: Bearer <FELO_API_KEY>
  • Content-Type: application/json
  • 请求体
    { "query": "<string>" }
    ,其中
    query
    长度为 1~2000 个字符
请参考 references/api-contract.mdreferences/workflow.md 处理成功/错误 payload 以及限流头部。