Skip to content

Commit

Permalink
Fix usage examples (#30)
Browse files Browse the repository at this point in the history
- Add missing `await` keyword on usage examples.
  • Loading branch information
vsakkas authored Apr 17, 2023
1 parent 93d51d5 commit d0805f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ You can ask Bing Chat questions and (optionally) include citations in the result

```python
async with SydneyClient() as sydney:
response = sydney.ask("When was Bing Chat released?", citations=True)
response = await sydney.ask("When was Bing Chat released?", citations=True)
print(response)
```

Expand Down Expand Up @@ -187,7 +187,7 @@ You can also receive the raw JSON response that comes from Bing Chat instead of

```python
async with SydneyClient() as sydney:
response = sydney.ask("When was Bing Chat released?", raw=True)
response = await sydney.ask("When was Bing Chat released?", raw=True)
print(response)
```

Expand Down

0 comments on commit d0805f6

Please sign in to comment.