mirror of
				https://github.com/xtekky/gpt4free.git
				synced 2025-10-31 19:42:45 +08:00 
			
		
		
		
	Use custom user data dir for each provider
Reuse cookies and access token in Copilot Send in the gui messages to multiple providers at once Add GUI documenation
This commit is contained in:
		| @@ -55,6 +55,12 @@ class Backend_Api(Api): | ||||
|                 return jsonify(response) | ||||
|             return response | ||||
|  | ||||
|         def jsonify_providers(**kwargs): | ||||
|             response = self.get_providers(**kwargs) | ||||
|             if isinstance(response, list): | ||||
|                 return jsonify(response) | ||||
|             return response | ||||
|  | ||||
|         self.routes = { | ||||
|             '/backend-api/v2/models': { | ||||
|                 'function': jsonify_models, | ||||
| @@ -65,7 +71,7 @@ class Backend_Api(Api): | ||||
|                 'methods': ['GET'] | ||||
|             }, | ||||
|             '/backend-api/v2/providers': { | ||||
|                 'function': self.get_providers, | ||||
|                 'function': jsonify_providers, | ||||
|                 'methods': ['GET'] | ||||
|             }, | ||||
|             '/backend-api/v2/version': { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Heiner Lohaus
					Heiner Lohaus