EinsteinCoder commited on
Commit
4a49cca
·
verified ·
1 Parent(s): 12b49df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -23,7 +23,7 @@ app = CustomFlask(__name__)
23
  CORS(app) # This will enable CORS for all routes
24
 
25
  GROQ_API_KEY = os.getenv("GROQ_API_KEY")
26
- GROQ_API_URL = "https://api.groq.com/openai/v1/chat/completions"
27
  APP_API_KEY = os.getenv("APP_API_KEY") # Set default if not in env
28
 
29
 
@@ -50,9 +50,9 @@ def create_chat_completion():
50
 
51
  groq_payload = {
52
  "messages": data["messages"],
53
- "model": "llama-3.2-90b-vision-preview",
54
- "max_tokens": data.get("max_tokens", 500),
55
- "temperature": data.get("temperature", 1.0),
56
  "n": data.get("n", 1),
57
  }
58
 
 
23
  CORS(app) # This will enable CORS for all routes
24
 
25
  GROQ_API_KEY = os.getenv("GROQ_API_KEY")
26
+ GROQ_API_URL = "https://api.together.xyz/v1/chat/completions"
27
  APP_API_KEY = os.getenv("APP_API_KEY") # Set default if not in env
28
 
29
 
 
50
 
51
  groq_payload = {
52
  "messages": data["messages"],
53
+ "model": "deepseek-ai/DeepSeek-R1"
54
+ "max_tokens": data.get("max_tokens", 5000),
55
+ "temperature": data.get("temperature", 0.1),
56
  "n": data.get("n", 1),
57
  }
58