Created
May 26, 2023 16:38
-
-
Save rishsriv/04fa665da9a0d7484de3574c7ba75a35 to your computer and use it in GitHub Desktop.
Implementing Defog in Vue, using veaury
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<Defog | |
maxWidth="100%" | |
maxHeight="100%" | |
apiEndpoint="https://test-defog-ikcpfh5tva-uc.a.run.app" | |
buttonText="Ask Defog" | |
personality="sarcastic and aloof" | |
debugMode={true} | |
apiKey="test" | |
/> | |
</template> | |
<script> | |
import {applyReactInVue} from 'veaury' | |
import { AskDefogChat } from "defog-components" | |
export default { | |
components: { | |
// Use HOC 'applyReactInVue' | |
Defog: applyReactInVue(AskDefogChat) | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment