+
-
- {{ item.message ? item.message : '...' }}
+ {{ item.message }}
+
+
+ 获取中...
+
@@ -111,7 +114,7 @@
-
+
@@ -158,17 +161,21 @@ import SDApi from './js/sd.js'
import StorageApi from './js/storage.js'
import PodsApi from './js/pod.js'
import RepEs from './js/repEs.js'
+import { MessagePlugin } from 'tdesign-vue-next';
+
// import MarkdownItVue from 'markdown-it-vue'
// import 'markdown-it-vue/dist/markdown-it-vue.css'
// https://github.com/ravenq/markdown-it-vue
+import MarkdownItVue from 'markdown-it-vue'
+import 'markdown-it-vue/dist/markdown-it-vue.css'
// const DataServe = new Data()
export default {
name: 'LlmApp',
components: {
- // MarkdownItVue
+ MarkdownItVue
},
data() {
return {
@@ -210,13 +217,24 @@ export default {
height: 512,
steps: 20,
sampler: 'DPM++ SDE Karras',
- showMoreSetting: true,
+ showMoreSetting: false,
default_prompt: '1girl, (ulzzang-6500:0.7), kpop idol, yae miko, detached sleeves, bare shoulders, pink hair, long hair, cleavage,japanese clothes,breast,best quality, (painting:1.5), (hair ornament:1.35), jewelry, purple eyes, earrings, breasts, torii, cherry blossoms, lantern light, depth of field, detailed face, face focus, ribbon_trim, (looking at viewer:1.25), nontraditional miko, shiny skin, long sleeves, smile, thick lips, game cg, east asian architecture, (blurry background:1.2), sitting, upper body ,',
negative_prompt: 'nfsw, bright lantern, brightness, (nipples:1.2), pussy, EasyNegative, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans,extra fingers, fewer fingers, strange fingers, bad hand, bare thighs,hand,bad finger',
history: {
name: 'ai',
key: 'history',
},
+ mdOptions: {
+ markdownIt: {
+ linkify: true
+ },
+ linkAttributes: {
+ attrs: {
+ target: '_blank',
+ rel: 'noopener'
+ }
+ }
+ }
}
},
methods: {
diff --git a/src/js/openai.js b/src/js/openai.js
index 33a2efa..af823b9 100644
--- a/src/js/openai.js
+++ b/src/js/openai.js
@@ -26,7 +26,7 @@ class OpenAI {
const stop = config?.stop??'[DONE]'
const max_tokens = config?.api_max_token??512
const model = config?.model??'vicuna-13b-all-v1.1'
- const temperature = this.temperature
+ const temperature = this.temperature??0.1
const top_p = config?.top_p??1.0
let stop_key = config?.stop_key??null
if (stop_key !== null && stop_key !== '') {
--
GitLab