mirror of
https://github.com/OpenBankProject/API-Explorer-II.git
synced 2026-02-06 10:47:04 +00:00
fix enter-to-submit
This commit is contained in:
parent
951aa989f9
commit
b8894bb371
@ -96,7 +96,7 @@ export class OpeyController {
|
||||
}
|
||||
|
||||
|
||||
// wrangle our text stream into a langchain stream
|
||||
// Transform our stream if needed, right now this is just a passthrough
|
||||
const frontendStream: ReadableStream = stream.pipeThrough(frontendTransformer)
|
||||
|
||||
// If we need to split the stream into two, we can use the tee method as below
|
||||
|
||||
@ -83,7 +83,7 @@ export default {
|
||||
}
|
||||
|
||||
const decodedValue = decoder.decode(value);
|
||||
console.log('Received:', decodedValue);
|
||||
console.debug('Received:', decodedValue); //DEBUG
|
||||
|
||||
// Parse the SSE data format
|
||||
const lines = decodedValue.split('\n');
|
||||
@ -147,9 +147,9 @@ export default {
|
||||
</div>
|
||||
</el-main>
|
||||
<el-footer>
|
||||
<el-form :inline="true">
|
||||
<el-form :inline="true" @submit.prevent>
|
||||
<el-form-item label="Message">
|
||||
<el-input v-model="input" placeholder="Type your message..." :disabled="status !== 'ready'" clearable />
|
||||
<el-input v-model="input" placeholder="Type your message..." :disabled="status !== 'ready'" @keypress.enter="this.onSubmit" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="this.onSubmit">Send</el-button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user