keung 在 Azure o1非流转流式cf workers 中发帖
因o1不支持stream: true參考了大佬github的o1非流轉流python代碼:
https://linux.do/t/topic/346647?u=keung
再用claude和o1搓了一下終於成功了,只是方便使用,至少在openwebui或其他客戶端頻繁切換模型,不用特別為了o1設置非流。至於azure o1是企業用戶才申請到的,我也有學生包,但似乎不行。
o1非流轉流式
角色system轉換成user
( 解決不支援system`角色,報錯400: Unsupported value: ‘messages[0].role’ does not support ‘system’ with this model.)
Markdown 格式的支持
(o1默認關, 系統提示詞加入`Formatting re-enabled)
one-api,new-api可用
(解決n...