API 參考

列出已儲存的聊天結果

GET/v1/chat/completions

僅能操作當前 Key 顯式 store=true 儲存的已結算完整結果,正文保留七天。查詢無結果不表示原請求未執行,不得據此自動退款或重發。store 和 metadata 不提供請求冪等保證。

鑑權與許可權

使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。

Authorization: Bearer $GLOOP_API_KEY

鑑權方案: BearerAuth

請求

查詢引數

  • afterstring選填
  • limitinteger選填
    預設值
    20
    最小值
    1
    最大值
    100
  • orderstring選填
    預設值
    "asc"
    列舉
    ["asc","desc"]
  • modelstring選填
  • metadataobject選填

    最多 16 個字串鍵值對,鍵最長 64 字元。

    最多屬性數
    16
    metadata 子欄位(1)
    • [key]string選填
      最長長度
      512

響應與錯誤

HTTP 200

成功

application/json

型別
object

HTTP 400

引數無效

application/json

型別
object
必填欄位
error

HTTP 401

Key 無效

application/json

型別
object
必填欄位
error

HTTP 404

結果不存在、已刪除、已過期或尚不可交付

application/json

型別
object
必填欄位
error

HTTP 503

暫時不可用

application/json

型別
object
必填欄位
error