refactor(open-sse): D1c — forceStream hardcode → PROVIDERS schema (#5)

chatCore providerRequiresStreaming: switch provider-name →
PROVIDERS[provider].forceStream. Thêm forceStream:true vào registry
openai/codex/commandcode. verify-providers allowlist added-fields
(forceStream/urlSuffix verified bằng golden + runtime test riêng).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decoluaandCursor committed 2026-06-13 22:05:01 +07:00
1 parent ad2a3e5de3
commit 4da1d6dad4
6 files changed
+30 -3

No files matched your search

+2 -1
View File
@@ -2,7 +2,8 @@ export default {
"id": "openai",
"alias": "openai",
"transport": {
"baseUrl": "https://api.openai.com/v1/chat/completions"
"baseUrl": "https://api.openai.com/v1/chat/completions",
"forceStream": true
},
"models": [
{