add: 添加chatgpt chat api逻辑
This commit is contained in:
@@ -26,7 +26,7 @@ class OpenAi(Platform):
|
|||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": f"Bearer {self.config['gpt_api_key']}"
|
"Authorization": f"Bearer {self.api_key}"
|
||||||
}
|
}
|
||||||
data = {
|
data = {
|
||||||
"model": self.model,
|
"model": self.model,
|
||||||
|
|||||||
Reference in New Issue
Block a user