Juna190825 commited on
Commit
6d2e2e6
·
verified ·
1 Parent(s): 9d9f345

Create api/utils.py

Browse files
Files changed (1) hide show
  1. api/utils.py +9 -0
api/utils.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from .openrouter import OpenRouterClient
2
+
3
+ _client_instance = None
4
+
5
+ def get_openrouter_client():
6
+ global _client_instance
7
+ if _client_instance is None:
8
+ _client_instance = OpenRouterClient()
9
+ return _client_instance