diff --git a/src/App.vue b/src/App.vue index c3218aca1eec65c0a137272e31afaaf3f18a3fb7..bb6972f254378d089f5363d295e0da99dc479b02 100644 --- a/src/App.vue +++ b/src/App.vue @@ -163,19 +163,6 @@ export default { indexClient: null, prompt: '', config: { - user_img: "", - robot_img: "", - user_call_name: "xxx", - width: 512, - // api_url: 'https://inscode-ide.node.inscode.run:8000/v1', - // index_url: 'http://127.0.0.1:8000/search', - // index_name: 'datasea', - // api_prompt_prefix: '', - // max_tokens: 2048, - // prompt_template: "Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.\n" + - // "{context}\n"+ - // "Question: {question}\n"+ - // "Helpful Answer:" }, loading: false, maxHistory: 200, @@ -452,6 +439,9 @@ export default { this.recoveryHistory() this.getAppInfo() // this.getAvatar() + if (this.mode === 'draw') { + this.prompt = this.default_prompt + } } };