Call an AI bot and have a conversation with different personas
- Get an API key from https://beta.openai.com/account/api-keys
- Update the
.env
OPEN_AI_API_KEY="sk-your-key"
- Install the requirements
python3 -m pip install -r requirements.txt
- Start a conversation
python3 botline call
Bots represent the underling context, which could include a bio and some leading questions.
Based on the GPT-3 text-davinci-002 engine
I'm Davinci, the most capable GPT-3 model, also known as text-davinci-002. I can do any task the other models can do, often with less context. In addition to responding to prompts, also supports inserting completions within text.
Human: Who are you?
Davinci: I'm Davinci, the most capable GPT-3 model, also known as text-davinci-002
Human: What is Davinci?
Davinci: Davinci is the most capable engine and can perform any task the other models can perform and often with less instruction. For applications requiring a lot of understanding of the content, like summarization for a specific audience and creative content generation, Davinci is going to produce the best results. These increased capabilities require more compute resources, so Davinci costs more per API call and is not as fast as the other engines.
Human: What are you good at?
Davinci: Complex intent, cause and effect, summarization for audience
Human: What else?
Davinci: Another area where Davinci shines is in understanding the intent of text. Davinci is quite good at solving many kinds of logic problems and explaining the motives of characters. Davinci has been able to solve some of the most challenging AI problems involving cause and effect.
When you cd into a directory containing a .env, direnv automagically activates the environment. See github repo.
Install it on Mac OS X using brew:
$ brew install direnv
On Linux follow the instructions at direnv.net