Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example on how to talk to an OpenAI-api based LLM server. #410

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,22 @@ This demo displays a basic ChatBot, which includes:

```

### OpenAI ChatBot

This is the basic ChatBot from above, but wired with an OPenAI server.
To get started set the URL and access token as needed:

```
const openAIServerBaseUrl = 'http://127.0.0.1:11434'; // Ollama server
// const openAIServerBaseUrl = 'http://127.0.0.1:8000'; // InstructLab server
const openAIToken = 'add-your-token-here':
```

```js file="./OpenAIChatbot.tsx" isFullscreen

```


### Embedded ChatBot

This demo displays an embedded ChatBot. Embedded ChatBots are meant to be placed within a page in your product. This demo includes:
Expand Down
Loading
Loading