mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-23 09:10:13 +03:00
~
This commit is contained in:
parent
7c410b7d21
commit
76083c5a17
@ -11,6 +11,10 @@ class Backend_Api:
|
||||
def __init__(self, app) -> None:
|
||||
self.app = app
|
||||
self.routes = {
|
||||
'/backend-api/v2/models': {
|
||||
'function': self.models,
|
||||
'methods' : ['GET']
|
||||
},
|
||||
'/backend-api/v2/conversation': {
|
||||
'function': self._conversation,
|
||||
'methods': ['POST']
|
||||
@ -20,6 +24,9 @@ class Backend_Api:
|
||||
'methods': ['POST']
|
||||
},
|
||||
}
|
||||
|
||||
def models(self):
|
||||
return {}
|
||||
|
||||
def _gen_title(self):
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user