Skip to content
GitLab
探索
登录
注册
主导航
搜索或转到…
项目
K
kpllms
管理
动态
成员
标记
计划
议题
0
议题看板
里程碑
Wiki
代码
合并请求
1
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
构建
流水线
作业
流水线计划
产物
部署
发布
软件包库
容器镜像库
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为 GitLab 提交贡献
提交反馈
快捷键
?
代码片段
群组
项目
lib
kpllms
提交
73afada1
提交
73afada1
编辑于
7个月前
作者:
Administrator
浏览文件
操作
下载
差异文件
Merge branch 'dev/hz_v1.0.5' into 'main'
realtime See merge request
!19
上级
86ea4a12
eec8db81
分支
分支 包含提交
标签
v0.2.9
标签 包含提交
1 合并请求
!19
realtime
变更
2
隐藏空白变更内容
行内
左右并排
显示
2 个更改的文件
openai/ws/params.go
+10
-8
10 个添加, 8 个删除
openai/ws/params.go
openai/ws/wsclient.go
+2
-0
2 个添加, 0 个删除
openai/ws/wsclient.go
有
12 个添加
和
8 个删除
openai/ws/params.go
+
10
−
8
浏览文件 @
73afada1
...
...
@@ -70,12 +70,14 @@ const (
ClientAudioCommit
Event
=
"input_audio_buffer.commit"
ClientAudioClear
Event
=
"input_audio_buffer.clear"
ResultTypeNone
LLMResultType
=
0
ResultTypeText
LLMResultType
=
1
ResultTypeTextDone
LLMResultType
=
2
ResultTypeAudio
LLMResultType
=
3
ResultTypeAudioDone
LLMResultType
=
4
ResultTypeAudioText
LLMResultType
=
5
ResultTypeAudioTextDone
LLMResultType
=
6
ResultTypeError
LLMResultType
=
7
ResultTypeNone
LLMResultType
=
0
ResultTypeText
LLMResultType
=
1
ResultTypeTextDone
LLMResultType
=
2
ResultTypeAudio
LLMResultType
=
3
ResultTypeAudioDone
LLMResultType
=
4
ResultTypeAudioText
LLMResultType
=
5
ResultTypeAudioTextDone
LLMResultType
=
6
ResultTypeError
LLMResultType
=
7
ResultTypeAudioBufferSpeechStart
LLMResultType
=
20
ResultTypeAudioBufferCommit
LLMResultType
=
30
)
This diff is collapsed.
Click to expand it.
openai/ws/wsclient.go
+
2
−
0
浏览文件 @
73afada1
...
...
@@ -218,10 +218,12 @@ func (c *WSClient) ResolveMessage(response Response, msg []byte) (result LLMResu
fmt
.
Println
(
responseType
,
"新项目创建完成..."
)
case
ServerAudioCommit
:
fmt
.
Println
(
responseType
,
"提交音频..."
)
result
=
LLMResult
{
Type
:
ResultTypeAudioBufferCommit
}
case
ServerAudioClear
:
fmt
.
Println
(
responseType
,
"清除音频..."
)
case
ServerAudioSpeechStart
:
fmt
.
Println
(
responseType
,
"缓冲区收到音频..."
)
result
=
LLMResult
{
Type
:
ResultTypeAudioBufferSpeechStart
}
case
ServerAudioSpeechStop
:
fmt
.
Println
(
responseType
,
"缓冲区停止接收音频..."
)
case
ServerAudioDone
:
...
...
This diff is collapsed.
Click to expand it.
预览
0%
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录