File tree Expand file tree Collapse file tree
common/changes/@coze/uniapp-api
packages/coze-uniapp/src/ws-tool Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "changes" : [
3+ {
4+ "packageName" : " @coze/uniapp-api" ,
5+ "comment" : " fix Websocket undefined" ,
6+ "type" : " patch"
7+ }
8+ ],
9+ "packageName" : " @coze/uniapp-api" ,
10+ "email" : " shenxiaojie.316@bytedance.com"
11+ }
Original file line number Diff line number Diff line change 66import {
77 APIError ,
88 COZE_CN_BASE_WS_URL ,
9- CozeAPI ,
109 type CreateChatWsReq ,
1110 type CreateChatWsRes ,
1211 type ErrorRes ,
@@ -16,6 +15,7 @@ import {
1615} from '@coze/api' ;
1716
1817import PcmStreamPlayer from '../pcm-stream-player' ;
18+ import { CozeAPI } from '../../api' ;
1919import { WsChatEventNames } from './event-names' ;
2020
2121export interface WsChatClientOptions extends WsToolsOptions {
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { type WsToolsOptions } from '@coze/api/ws-tools';
22import {
33 APIError ,
44 COZE_CN_BASE_WS_URL ,
5- CozeAPI ,
65 type CreateTranscriptionsWsReq ,
76 type CreateTranscriptionsWsRes ,
87 type ErrorRes ,
@@ -11,6 +10,7 @@ import {
1110} from '@coze/api' ;
1211
1312import { PcmRecorder } from '../pcm-recorder' ;
13+ import { CozeAPI } from '../../api' ;
1414
1515/**
1616 * Base WebSocket transcription client for UniApp/WeChat Mini Program
You can’t perform that action at this time.
0 commit comments