在 React Native 中接入 CloudBase AI(DeepSeek / 混元)
RN 0.74+ 前端通过 fetch + ReadableStream(或 react-native-fetch-api polyfill / XHR onprogress fallback)消费后端 Route Handler 的流式响应,后端用 @cloudbase/node-sdk 调 streamText,凭证只放服务端,绝不进 JS bundle。
RN 0.74+ 前端通过 fetch + ReadableStream(或 react-native-fetch-api polyfill / XHR onprogress fallback)消费后端 Route Handler 的流式响应,后端用 @cloudbase/node-sdk 调 streamText,凭证只放服务端,绝不进 JS bundle。
用 wx.cloud.extend.AI 在小程序里直接调 DeepSeek / 混元等 CloudBase 平台模型,流式输出用 for-await 消费 textStream,无需自建后端 LLM 网关。