forked from retoor/devplacepy
Update
This commit is contained in:
@@ -594,6 +594,7 @@ class NewsService(BaseService):
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"X-App-Reference": "devplace-news-v-1-0-0",
|
||||
}
|
||||
ai_key = _get_ai_key()
|
||||
if ai_key:
|
||||
@@ -646,7 +647,7 @@ class NewsService(BaseService):
|
||||
"temperature": 0.3,
|
||||
}
|
||||
|
||||
headers = {"Content-Type": "application/json"}
|
||||
headers = {"Content-Type": "application/json", "X-App-Reference": "devplace-news-v-1-0-0"}
|
||||
ai_key = _get_ai_key()
|
||||
if ai_key:
|
||||
headers["Authorization"] = f"Bearer {ai_key}"
|
||||
|
||||
Reference in New Issue
Block a user