Comments (3)
The problem here is that you are not using Vue's Composition or Options APIs, hence the inlined object values are not being picked up properly. You will have to move inputAreaStyle
, request
, requestInterceptor
and responseInterceptor
object values to const
values in the script
. Example:
:responseInterceptor ="responseInterceptor"
In script:
const responseInterceptor = (response) => {
// const responseText = // extract it from the response argument
return { text: response.choices[0].message.content };
}
Let me know if this helps. Thanks!
from deep-chat.
"responseInterceptor"
Yeah, tks a lot, it works now :-)
from deep-chat.
That is good to hear!
from deep-chat.
Related Issues (20)
- Combination of streaming and mixedFiles not working HOT 2
- Enhancement request: Add support for copy/paste files from clipboard HOT 11
- Return multiple responses with custom API HOT 2
- Send the request without showing it HOT 6
- Defining properties in Svelte HOT 2
- BUG: Line breaks are not maintained in chat HOT 7
- Enhancement Request: Clicking an image should not automatically download HOT 1
- Access Methods in React HOT 3
- set height to 100% of parent div HOT 2
- Please help me assign a click event on each html element. HOT 1
- Struggling to change the text of drop-down items HOT 2
- Option to import other react component inside the deepchat HOT 1
- Using input capture method for camera HOT 1
- Setting/Adding AI messages directly HOT 6
- Streaming with feedback HOT 3
- HTTP request response as HTML streaming support HOT 4
- Sending speech to text input HOT 2
- Events when audio is activated / deactivated HOT 8
- Help needed in button position HOT 2
- Display loadingBubble override HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep-chat.