Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,10 @@ client = Groq(api_key=api_key)
|
|
| 9 |
MODEL_NAME = 'openai/gpt-oss-safeguard-20b'
|
| 10 |
|
| 11 |
def chat_groq(current_message_content, history):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
try:
|
| 13 |
system_prompt = 'You are a helpful ai assistant.'
|
| 14 |
api_messages = [{"role": 'system', 'content': system_prompt}]
|
|
|
|
| 9 |
MODEL_NAME = 'openai/gpt-oss-safeguard-20b'
|
| 10 |
|
| 11 |
def chat_groq(current_message_content, history):
|
| 12 |
+
"""
|
| 13 |
+
current_message_content: latest user message (string)
|
| 14 |
+
history: previous list of [user, bot] paris from Gradio
|
| 15 |
+
"""
|
| 16 |
try:
|
| 17 |
system_prompt = 'You are a helpful ai assistant.'
|
| 18 |
api_messages = [{"role": 'system', 'content': system_prompt}]
|