@liip/liipgpt
v3.7.0
Published
LiipGPT Chat and Library
Readme
LiipGPT Chat & Library
This package provides the following:
- A web component for embedding the LiipGPT chat UI (
<liipgpt-chat>) - A web component for embedding the LiipGPT button as a link (
<liipgpt-button>) - A one-shot search summary web component (
<liipgpt-search-summary>) - A client library for interacting with the LiipGPT API
Embed
<!-- Chat -->
<script src="https://cdn.example.com/@liip/liipgpt/chat/liipgpt-chat.iife.js"></script>
<liipgpt-chat api-url="https://your-api.example.com/org" lang="en"></liipgpt-chat>
<!-- Button -->
<script src="https://cdn.example.com/@liip/liipgpt/button/liipgpt-button.iife.js"></script>
<liipgpt-button api-url="https://your-api.example.com/org" lang="en"></liipgpt-button>
<!-- Search summary -->
<script src="https://cdn.example.com/@liip/liipgpt/search-summary/liipgpt-search-summary.iife.js"></script>
<h2 id="ai-overview">AI overview</h2>
<liipgpt-search-summary
labelled-by="ai-overview"
question="What can you tell me about your services?"
api-url="https://your-api.example.com/org"
lang="en"
height="280"
></liipgpt-search-summary>Note: The standalone
@liip/liipgpt-search-summarypackage is superseded by@liip/liipgpt/search-summaryfrom this package.
For more information please refer to: docs.liipgpt.ch
