Niansuh commited on
Commit
61113f5
·
verified ·
1 Parent(s): c9defe1

Rename api/providers/gizai.py to api/provider/gizai.py

Browse files
api/{providers → provider}/gizai.py RENAMED
@@ -1,5 +1,3 @@
1
- # api/providers/gizai.py
2
-
3
  from __future__ import annotations
4
 
5
  import json
@@ -14,10 +12,10 @@ class GizAI(AsyncGeneratorProvider, ProviderModelMixin):
14
  url = "https://app.giz.ai/assistant/"
15
  api_endpoint = "https://app.giz.ai/api/data/users/inferenceServer.infer"
16
  working = True
17
-
18
  supports_system_message = True
19
  supports_message_history = True
20
-
21
  # Chat models
22
  default_model = 'chat-gemini-flash'
23
  chat_models = [
@@ -42,7 +40,7 @@ class GizAI(AsyncGeneratorProvider, ProviderModelMixin):
42
  ]
43
 
44
  models = [*chat_models, *image_models]
45
-
46
  model_aliases = {
47
  # Chat model aliases
48
  "gemini-flash": "chat-gemini-flash",
@@ -82,7 +80,7 @@ class GizAI(AsyncGeneratorProvider, ProviderModelMixin):
82
  **kwargs
83
  ) -> AsyncResult:
84
  model = cls.get_model(model)
85
-
86
  headers = {
87
  'Accept': 'application/json, text/plain, */*',
88
  'Accept-Language': 'en-US,en;q=0.9',
 
 
 
1
  from __future__ import annotations
2
 
3
  import json
 
12
  url = "https://app.giz.ai/assistant/"
13
  api_endpoint = "https://app.giz.ai/api/data/users/inferenceServer.infer"
14
  working = True
15
+
16
  supports_system_message = True
17
  supports_message_history = True
18
+
19
  # Chat models
20
  default_model = 'chat-gemini-flash'
21
  chat_models = [
 
40
  ]
41
 
42
  models = [*chat_models, *image_models]
43
+
44
  model_aliases = {
45
  # Chat model aliases
46
  "gemini-flash": "chat-gemini-flash",
 
80
  **kwargs
81
  ) -> AsyncResult:
82
  model = cls.get_model(model)
83
+
84
  headers = {
85
  'Accept': 'application/json, text/plain, */*',
86
  'Accept-Language': 'en-US,en;q=0.9',