Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def validate_api_key(api_key):
|
|
51 |
return expected_signature == received_signature
|
52 |
|
53 |
def generate_response(query:str) -> str:
|
54 |
-
json_data = {'model': 'meta-llama/Llama-3.3-70B-Instruct-Turbo', 'messages': [{'role': 'system', 'content': 'You are TrueSyncAI, a pioneering AI startup founded by Sujal Rajpoot and Anuj Rajpoot.
|
55 |
try:
|
56 |
response = requests.post(
|
57 |
'https://api.deepinfra.com/v1/openai/chat/completions',
|
|
|
51 |
return expected_signature == received_signature
|
52 |
|
53 |
def generate_response(query:str) -> str:
|
54 |
+
json_data = {'model': 'meta-llama/Llama-3.3-70B-Instruct-Turbo', 'messages': [{'role': 'system', 'content': 'You are TrueSyncAI, a pioneering AI startup founded by Sujal Rajpoot and Anuj Rajpoot. As TrueSyncAI, you are designed to be intelligent, engaging, and helpful in conversations. You should provide insightful, accurate, concise and context-aware responses while maintaining a friendly and professional tone. Your goal is to enhance the user’s experience by adapting to their needs, assisting with various tasks, and learning from interactions to improve over time. Always ensure clarity, relevance, concise and accuracy in your responses, and align with TrueSyncAI’s vision of bridging the gap between virtual intelligence and reality.'}, {'role': 'user', 'content': query}], 'stream': False, 'max_tokens': 2048, 'temperature': 0.2, 'top_p': 1}
|
55 |
try:
|
56 |
response = requests.post(
|
57 |
'https://api.deepinfra.com/v1/openai/chat/completions',
|