Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CharIP-Electron
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ali
CharIP-Electron
Commits
71728fa5
You need to sign in or sign up before continuing.
Commit
71728fa5
authored
Dec 29, 2023
by
ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: llm websocket 重写成 llm loop post
parent
19dfc9af
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
189 additions
and
471 deletions
+189
-471
IPCs.ts
src/main/IPCs.ts
+16
-11
ShowPhoto.vue
src/renderer/screens/ShowPhoto.vue
+81
-259
ShowVideo.vue
src/renderer/screens/ShowVideo.vue
+92
-201
No files found.
src/main/IPCs.ts
View file @
71728fa5
...
...
@@ -118,6 +118,8 @@ export default class IPCs {
static
initializeChildWindow
(
window
:
BrowserWindow
)
{
ipcMain
.
on
(
'fileUpload'
,
async
(
event
,
path
:
string
)
=>
{
try
{
const
content
=
IPCs
.
readFile
(
path
)
const
formData
=
new
FormData
()
const
blob
=
new
Blob
([
content
],
{
type
:
'audio/wav'
})
...
...
@@ -127,8 +129,11 @@ export default class IPCs {
method
:
'POST'
,
data
:
formData
})
window
.
webContents
.
send
(
'msgReceivedFileUploadResponse'
,
response
)
}
catch
(
error
)
{
window
.
webContents
.
send
(
'msgReceivedFileUploadResponse'
,
{
code
:
500
,
message
:
JSON
.
stringify
(
error
)
})
}
})
}
}
src/renderer/screens/ShowPhoto.vue
View file @
71728fa5
This diff is collapsed.
Click to expand it.
src/renderer/screens/ShowVideo.vue
View file @
71728fa5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment