radinhas commited on
Commit
901702c
·
1 Parent(s): 4353150

Update apis/chat_api.py

Browse files
Files changed (1) hide show
  1. apis/chat_api.py +10 -1
apis/chat_api.py CHANGED
@@ -23,7 +23,16 @@ class ChatAPIApp:
23
 
24
  def get_available_models(self):
25
  f = open('lang_name.json')
26
- self.available_models = json.load(f)
 
 
 
 
 
 
 
 
 
27
  return self.available_models
28
 
29
  class ChatCompletionsPostItem(BaseModel):
 
23
 
24
  def get_available_models(self):
25
  f = open('lang_name.json')
26
+ self.available_models = [
27
+ {
28
+ "code": "auto",
29
+ "name": "Detect"
30
+ },
31
+ {
32
+ "code": "fa",
33
+ "name": "persian"
34
+ }
35
+ ]
36
  return self.available_models
37
 
38
  class ChatCompletionsPostItem(BaseModel):