Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5f16966

Browse files
2 parents 6daf17a + fa48cc6 commit 5f16966

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

‎README.md‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# ConvoStack
1+
<h1style="margin-top: 0px">ConvoStack 💬⭐</h1>
22

33
<img width="1439" alt="Screenshot 2023年06月02日 at 2 47 17 AM" src="https://github.com/ConvoStack/convostack/assets/8688852/40fdbf63-4f53-4143-8628-39c934eaaed4">
44

5-
## What is ConvoStack?
5+
## Key Features
66

7-
ConvoStack is a plugandplay embeddable AI chatbot widget and backend deployment framework for your website. **It is
7+
ConvoStack is a plug-and-play embeddable AI chatbot widget and backend deployment framework for your website. **It is
88
completely free and open source and currently running on our [docs](https://docs.convostack.ai/) website!**
99

1010
The core technologies are:
@@ -21,28 +21,27 @@ the [docs](https://docs.convostack.ai/).
2121

2222
To see a live demo of ConvoStack, check out our free [playground](https://playground.convostack.ai)!
2323

24-
## Learn the Basics
25-
26-
Learn about ConvoStack and what sets it apart from other AI chatbot software:
27-
28-
- [Why ConvoStack?](https://docs.convostack.ai/the-basics)
29-
3024
## Getting Started
3125

32-
Get your AI chatbot up and running in minutes with our [quickstart guide](https://docs.convostack.ai/getting-started/):
26+
Get your AI chatbot up and running in minutes with our [Quickstart repo and guide](https://github.com/ConvoStack/quickstart):
3327

3428
In the following example, we are connecting a Langchain OpenAI [LLM](https://js.langchain.com/docs/modules/models/llms/) to the chatbot playground.
3529

3630
```typescript
31+
import * as dotenv from "dotenv";
32+
// Configures the OpenAI API key
33+
dotenv.config();
34+
3735
import { playground } from "convostack/playground";
36+
import { IAgentContext, IAgentResponse } from "convostack/agent";
3837
import { OpenAI } from "langchain/llms/openai";
3938

4039
playground({
41-
reply(context: IAgentContext): Promise<IAgentResponse> {
40+
asyncreply(context: IAgentContext): Promise<IAgentResponse> {
4241
// `humanMessage` is the content of each message the user sends via the chatbot playground.
4342
let humanMessage = context.getHumanMessage().content;
4443
// `agent` is the OpenAI agent we want to use to respond to each `humanMessage`
45-
const agent = new OpenAI();
44+
const agent = new OpenAI({ modelName: "gpt-3.5-turbo" });
4645
// `call` is a simple string-in, string-out method for interacting with the OpenAI agent.
4746
const resp = await model.call(humanMessage);
4847
// `resp` is the generated agent's response to the user's `humanMessage`

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /