Skip to content

Commit

Permalink
Update document (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinichi-takayanagi committed May 5, 2023
1 parent d716637 commit dc68b26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ You can chat with the GPT model developped by OpenAI and save the conversation a
[![python-version](https://img.shields.io/pypi/pyversions/oregpt.svg)](https://pypi.org/project/oregpt/)
[![pypi](https://img.shields.io/pypi/v/oregpt?color=%2334D058&label=pypi%20package)](https://pypi.org/project/oregpt)

![oregpt](https://user-images.githubusercontent.com/24406372/236361796-4a38af2b-b7b6-48e3-8ab6-dcba0be1532f.gif)

## Installation

### Get your own OpenAI API Key
Assuming you have an environment variable with key named `OPENAI_API_KEY`.
If you don't have a OpenAI API key [visit here](https://platform.openai.com/account/api-keys), generate one and add it as an environment variable
Expand Down
1 change: 1 addition & 0 deletions tests/test_chat_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def test_chat_bot_respond(monkeypatch):
def _create(*args, **kwargs):
return [{"choices": [{"delta": {"content": "Yep"}}]}]

# Set monkey patch to avoid this error: https://github.com/prompt-toolkit/python-prompt-toolkit/issues/406
def _print(*args, **kwargs):
pass

Expand Down

0 comments on commit dc68b26

Please sign in to comment.