Skip to content

Commit

Permalink
add import to readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
qhenkart committed May 3, 2023
1 parent 4b60aa1 commit 47cac6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ Open-AI maintains clear documentation on how to [handle API errors](https://plat

example:
```
e := &APIError{}
e := &openai.APIError{}
if errors.As(err, &e) {
switch e.HTTPStatusCode {
case 401:
Expand Down

0 comments on commit 47cac6c

Please sign in to comment.