Skip to content

Instantly share code, notes, and snippets.

@rishsriv
Created May 26, 2023 16:38
Show Gist options
  • Save rishsriv/04fa665da9a0d7484de3574c7ba75a35 to your computer and use it in GitHub Desktop.
Save rishsriv/04fa665da9a0d7484de3574c7ba75a35 to your computer and use it in GitHub Desktop.
Implementing Defog in Vue, using veaury
<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