Skip to content

Commit 8f431df

Browse files
jackshen310shenxiaojie.316
andauthored
fix(uniapp-api): fix Websocket undefined (#283)
Co-authored-by: shenxiaojie.316 <shenxiaojie.316@bytedance.com>
1 parent 59d889e commit 8f431df

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

packages/coze-uniapp/src/ws-tool/chat/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
import {
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

1817
import PcmStreamPlayer from '../pcm-stream-player';
18+
import { CozeAPI } from '../../api';
1919
import { WsChatEventNames } from './event-names';
2020

2121
export interface WsChatClientOptions extends WsToolsOptions {

packages/coze-uniapp/src/ws-tool/transcription/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { type WsToolsOptions } from '@coze/api/ws-tools';
22
import {
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

1312
import { PcmRecorder } from '../pcm-recorder';
13+
import { CozeAPI } from '../../api';
1414

1515
/**
1616
* Base WebSocket transcription client for UniApp/WeChat Mini Program

0 commit comments

Comments
 (0)