Skip to content

Commit

Permalink
Added Langchain example
Browse files Browse the repository at this point in the history
Added an example that uses Langchain to connect to an OpenAI compatible
API endpoint.

Resolves #3.
  • Loading branch information
arnemu committed Jul 4, 2024
1 parent f8baef4 commit 8dadf36
Show file tree
Hide file tree
Showing 8 changed files with 7,449 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/langchain/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
25 changes: 25 additions & 0 deletions examples/langchain/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<!-- import script as module -->
<script src="dist/bundle.esm.min.js" type="module"></script>
<link
href="dist/bundle.min.css"
rel="stylesheet"
/>
</head>
<body>
<div id="main">
<div id="messages"></div>
</div>
<div
id="chatbar"
data-chatbotui-note="Chatbot UI"
data-chatbotui-input-placeholder="Send a message to ChatbotUI"
></div>
</body>
</html>

Loading

0 comments on commit 8dadf36

Please sign in to comment.