Merge branch 'main' of github.com:maxkb-dev/maxkb
This commit is contained in:
commit
8214dc8b51
@ -2,4 +2,4 @@ CREATE DATABASE "maxkb";
|
|||||||
|
|
||||||
\c "maxkb";
|
\c "maxkb";
|
||||||
|
|
||||||
CREATE EXTENSION "vector" VERSION '0.5.1';
|
CREATE EXTENSION "vector";
|
||||||
@ -7,10 +7,4 @@ docker-entrypoint.sh postgres &
|
|||||||
until pg_isready --host=127.0.0.1; do sleep 1 && echo "waiting for postgres"; done
|
until pg_isready --host=127.0.0.1; do sleep 1 && echo "waiting for postgres"; done
|
||||||
|
|
||||||
# Start MaxKB
|
# Start MaxKB
|
||||||
python /opt/maxkb/app/main.py start &
|
python /opt/maxkb/app/main.py start
|
||||||
|
|
||||||
# Wait for any process to exit
|
|
||||||
wait -n
|
|
||||||
|
|
||||||
# Exit with status of process that exited first
|
|
||||||
exit $?
|
|
||||||
@ -181,6 +181,7 @@ import useStore from '@/stores'
|
|||||||
import MdRenderer from '@/components/markdown-renderer/MdRenderer.vue'
|
import MdRenderer from '@/components/markdown-renderer/MdRenderer.vue'
|
||||||
import { MdPreview } from 'md-editor-v3'
|
import { MdPreview } from 'md-editor-v3'
|
||||||
import { MsgError } from '@/utils/message'
|
import { MsgError } from '@/utils/message'
|
||||||
|
import { debounce } from 'lodash'
|
||||||
defineOptions({ name: 'AiChat' })
|
defineOptions({ name: 'AiChat' })
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const {
|
const {
|
||||||
@ -266,14 +267,19 @@ function openParagraph(row: any, id?: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function quickProblemHandel(val: string) {
|
function quickProblemHandel(val: string) {
|
||||||
if (!props.log) {
|
if (!props.log && !loading.value) {
|
||||||
// inputValue.value = val
|
// inputValue.value = val
|
||||||
// nextTick(() => {
|
// nextTick(() => {
|
||||||
// quickInputRef.value?.focus()
|
// quickInputRef.value?.focus()
|
||||||
// })
|
// })
|
||||||
|
|
||||||
|
handleDebounceClick(val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleDebounceClick = debounce((val) => {
|
||||||
chatMessage(null, val)
|
chatMessage(null, val)
|
||||||
}
|
}, 200)
|
||||||
}
|
|
||||||
|
|
||||||
function sendChatHandle(event: any) {
|
function sendChatHandle(event: any) {
|
||||||
if (!event.ctrlKey) {
|
if (!event.ctrlKey) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user