diff --git a/docs/translate-ai.html b/docs/translate-ai.html index 84e20683479..2986f117e34 100644 --- a/docs/translate-ai.html +++ b/docs/translate-ai.html @@ -372,12 +372,12 @@
curl https://ai.pgpt.cloud/v1/language/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API_KEY>" \
-
import request
+
import requests
-HOST = 'https://ai.pgpt.cloud/'
+HOST = 'https://ai.pgpt.cloud'
API_KEY = '<YOUR_API_KEY>'
-header = {
+headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {API_KEY}",
}
diff --git a/source/translate-ai.html.md b/source/translate-ai.html.md
index fd38c1e1505..fd383951b13 100644
--- a/source/translate-ai.html.md
+++ b/source/translate-ai.html.md
@@ -50,12 +50,12 @@ curl https://ai.pgpt.cloud/v1/language/ \
```
```python
-import request
+import requests
-HOST = 'https://ai.pgpt.cloud/'
+HOST = 'https://ai.pgpt.cloud'
API_KEY = ''
-header = {
+headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {API_KEY}",
}