Streaming

在流末尾讀取事件、使用情況和錯誤。

API Store Hub technical reference diagram for streaming
Architecture diagram for streaming with API Store Hub Base URLs (https://apistorehub.com and https://apistorehub.com/v1).

輸出內容後,流可以包含沒有選擇、終止符或錯誤的使用事件。處理每個事件並檢查最終狀態;初始 HTTP 200 並不能證明任務已完成。

響應的確認通過網關 API Store Hub。

非流量呼叫的計費令牌數量。流沒有這個標頭。

curl https://apistorehub.com/v1/models \
  -H "Authorization: Bearer sk-ash-your_key"