JarvisChan630 commited on
Commit
f72b2d3
·
1 Parent(s): 2e6fa65
Files changed (2) hide show
  1. README.md +3 -3
  2. models/llms.py +2 -1
README.md CHANGED
@@ -25,7 +25,7 @@ Thanks John Adeojo, who brings this wonderful project to open source community!
25
  - docker
26
  - Hugging Face deploy
27
 
28
- WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
29
 
30
 
31
  ## TODO
@@ -52,9 +52,9 @@ WARNING: Running pip as the 'root' user can result in broken permissions and con
52
 
53
 
54
  ## FAQ
55
- 1. How this system work?
56
 
57
- 2.
58
 
59
 
60
 
 
25
  - docker
26
  - Hugging Face deploy
27
 
28
+
29
 
30
 
31
  ## TODO
 
52
 
53
 
54
  ## FAQ
55
+ 1. How this system work? Please draw its workflow
56
 
57
+ 2. How
58
 
59
 
60
 
models/llms.py CHANGED
@@ -396,7 +396,8 @@ class OpenAIModel(BaseModel):
396
  # load_config(config_path)
397
  load_dotenv()
398
  self.model_endpoint = 'https://api.302.ai/v1/chat/completions'
399
- self.api_key = os.getenv('OPENAI_API_KEY')
 
400
  self.headers = {
401
  'Content-Type': 'application/json',
402
  'Authorization': f'Bearer {self.api_key}'
 
396
  # load_config(config_path)
397
  load_dotenv()
398
  self.model_endpoint = 'https://api.302.ai/v1/chat/completions'
399
+
400
+ self.api_key = os.environ('OPENAI_API_KEY')
401
  self.headers = {
402
  'Content-Type': 'application/json',
403
  'Authorization': f'Bearer {self.api_key}'