diff options
Diffstat (limited to 'gpt4free/italygpt/README.md')
-rw-r--r-- | gpt4free/italygpt/README.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gpt4free/italygpt/README.md b/gpt4free/italygpt/README.md new file mode 100644 index 00000000..984eff3a --- /dev/null +++ b/gpt4free/italygpt/README.md @@ -0,0 +1,18 @@ +### Example: `italygpt`
+
+```python
+# create an instance
+from gpt4free import italygpt
+italygpt = italygpt.Completion()
+
+# initialize api
+italygpt.init()
+
+# get an answer
+italygpt.create(prompt="What is the meaning of life?")
+print(italygpt.answer) # html formatted
+
+# keep the old conversation
+italygpt.create(prompt="Are you a human?", messages=italygpt.messages)
+print(italygpt.answer)
+```
\ No newline at end of file |