This commit is contained in:
2025-08-15 16:16:39 +08:00
parent 42eae888ae
commit b5bb154dcf

View File

@@ -5,8 +5,8 @@ import requests
from Config.Config import GPTNB_API_KEY
class ModelInteractor:
def __init__(self, api_url="https://goapi.gptnb.ai/v1/chat/completions"):
self.api_url = api_url
def __init__(self):
self.api_url = "https://goapi.gptnb.ai/v1/chat/completions",
self.headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {GPTNB_API_KEY}"