mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-01 03:21:02 +00: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']
|
||||
@ -21,6 +25,9 @@ class Backend_Api:
|
||||
},
|
||||
}
|
||||
|
||||
def models(self):
|
||||
return {}
|
||||
|
||||
def _gen_title(self):
|
||||
return {
|
||||
'title': ''
|
||||
|
Loading…
Reference in New Issue
Block a user