mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 10:46:27 +00:00
Added client_id everywhere
This commit is contained in:
parent
b9ee0f2f2c
commit
16614942fe
@ -30,7 +30,7 @@ router = APIRouter()
|
||||
async def get_lollms_webui_version():
|
||||
"""Get the version of the LoLLMs Web UI application."""
|
||||
# Return the version string
|
||||
return {"id":3}
|
||||
return {"id":4}
|
||||
|
||||
@router.get("/get_lollms_webui_version")
|
||||
async def get_lollms_webui_version():
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
web/dist/index.html
vendored
4
web/dist/index.html
vendored
@ -6,8 +6,8 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LoLLMS WebUI - Welcome</title>
|
||||
<script type="module" crossorigin src="/assets/index-c2fef247.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-4b1865b7.css">
|
||||
<script type="module" crossorigin src="/assets/index-a0053fc9.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-59ed6826.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -893,6 +893,7 @@ export default {
|
||||
try {
|
||||
if (discussionIdArr.length > 0) {
|
||||
const res = await axios.post('/export_multiple_discussions', {
|
||||
client_id:this.$store.state.client_id,
|
||||
discussion_ids: discussionIdArr,
|
||||
export_format: export_format
|
||||
}, {headers: this.posts_headers})
|
||||
@ -907,12 +908,13 @@ export default {
|
||||
return {}
|
||||
}
|
||||
},
|
||||
async import_multiple_discussions(jArray) {
|
||||
async import_multiple_discussions(jArray_) {
|
||||
try {
|
||||
if (jArray.length > 0) {
|
||||
console.log('sending import', jArray)
|
||||
if (jArray_.length > 0) {
|
||||
console.log('sending import', jArray_)
|
||||
const res = await axios.post('/import_multiple_discussions', {
|
||||
jArray
|
||||
client_id: this.$store.state.client_id,
|
||||
jArray: jArray_
|
||||
}, {headers: this.posts_headers})
|
||||
|
||||
if (res) {
|
||||
|
@ -4322,9 +4322,8 @@ export default {
|
||||
return res
|
||||
},
|
||||
applyConfiguration() {
|
||||
|
||||
this.isLoading = true;
|
||||
axios.post('/apply_settings', {"config":this.configFile}).then((res) => {
|
||||
axios.post('/apply_settings', {"client_id":this.$store.state.client_id, "config":this.configFile}).then((res) => {
|
||||
this.isLoading = false;
|
||||
//console.log('apply-res',res)
|
||||
if (res.data.status) {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit a09208c518bda3c1b0957e977dc65386074d265b
|
||||
Subproject commit f113e5b52c31ea2cdb38d705870efb9b7f035036
|
Loading…
Reference in New Issue
Block a user