update
Browse files- config/config.py +1 -8
config/config.py
CHANGED
@@ -1,17 +1,10 @@
|
|
1 |
# config/config.py
|
2 |
import os
|
3 |
-
import yaml
|
4 |
-
import argparse
|
5 |
from groq import Groq
|
6 |
|
7 |
-
config = yaml.load(open(args.config, "r"), Loader=yaml.FullLoader)
|
8 |
|
9 |
# Groq API 設定
|
10 |
-
|
11 |
-
GROQ_API_KEY = os.getenv('GROQ_API_KEY')
|
12 |
-
else:
|
13 |
-
GROQ_API_KEY = config.get("GROQ", {}).get("key")
|
14 |
-
|
15 |
MODEL = "llama-3.1-70b-versatile"
|
16 |
AUDIO_MODEL = "whisper-large-v3"
|
17 |
|
|
|
1 |
# config/config.py
|
2 |
import os
|
|
|
|
|
3 |
from groq import Groq
|
4 |
|
|
|
5 |
|
6 |
# Groq API 設定
|
7 |
+
GROQ_API_KEY = os.getenv('GROQ_API_KEY')
|
|
|
|
|
|
|
|
|
8 |
MODEL = "llama-3.1-70b-versatile"
|
9 |
AUDIO_MODEL = "whisper-large-v3"
|
10 |
|