From 015b5614fc6f5d6021dda287cf131cf6054811ef Mon Sep 17 00:00:00 2001 From: ubuntu Date: Thu, 4 Apr 2024 13:01:31 +0800 Subject: [PATCH] Fix error in translate documentation --- docs/translate-ai.html | 6 +++--- source/translate-ai.html.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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}",
 }