summaryrefslogtreecommitdiffstats
path: root/gpt4free/italygpt/README.md
blob: 984eff3adf55e83c4c9fe5a341f239fdcd55bf41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
```