'commit'
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import json
|
||||
import requests
|
||||
|
||||
from Config import Config
|
||||
from Config.Config import GPTNB_API_KEY
|
||||
|
||||
class ModelInteractor:
|
||||
def __init__(self, api_key=GPTNB_API_KEY, api_url="https://goapi.gptnb.ai/v1/chat/completions"): # 修复URL
|
||||
def __init__(self, api_key=GPTNB_API_KEY, api_url=f"{Config.GPTNB_BASE_URL}/v1/chat/completions"): # 修复URL
|
||||
self.api_key = api_key
|
||||
self.api_url = api_url
|
||||
self.headers = {
|
||||
|
Reference in New Issue
Block a user