'commit'
This commit is contained in:
@@ -5,8 +5,8 @@ import requests
|
|||||||
from Config.Config import GPTNB_API_KEY
|
from Config.Config import GPTNB_API_KEY
|
||||||
|
|
||||||
class ModelInteractor:
|
class ModelInteractor:
|
||||||
def __init__(self, api_url="https://goapi.gptnb.ai/v1/chat/completions"):
|
def __init__(self):
|
||||||
self.api_url = api_url
|
self.api_url = "https://goapi.gptnb.ai/v1/chat/completions",
|
||||||
self.headers = {
|
self.headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": f"Bearer {GPTNB_API_KEY}"
|
"Authorization": f"Bearer {GPTNB_API_KEY}"
|
||||||
|
Reference in New Issue
Block a user