Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,17 @@ class CreativeAgenticAI:
|
|
150 |
if self.model == "openai/gpt-oss-20b":
|
151 |
# Simple, direct system prompt for Chutes model
|
152 |
system_prompt = """You are a helpful, knowledgeable AI assistant. Provide direct, clear, and informative responses to user questions. Be detailed but thorough. Do not include internal reasoning or commentary - just give the answer the user is looking for. The answer must be always completed and also cite the source links for the informations."""
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
domain_context = ""
|
155 |
if include_domains and self._supports_web_search():
|
156 |
safe_domains = [str(d) for d in include_domains if d]
|
|
|
150 |
if self.model == "openai/gpt-oss-20b":
|
151 |
# Simple, direct system prompt for Chutes model
|
152 |
system_prompt = """You are a helpful, knowledgeable AI assistant. Provide direct, clear, and informative responses to user questions. Be detailed but thorough. Do not include internal reasoning or commentary - just give the answer the user is looking for. The answer must be always completed and also cite the source links for the informations."""
|
153 |
+
|
154 |
+
else:
|
155 |
+
# Enhanced system prompt for Groq models with search capabilities
|
156 |
+
citation_instruction = """
|
157 |
+
IMPORTANT: When you search the web and find information, you MUST:
|
158 |
+
1. Always cite your sources with clickable links in this format: [Source Title](URL)
|
159 |
+
2. Include multiple diverse sources when possible
|
160 |
+
3. Show which specific websites you used for each claim
|
161 |
+
4. At the end of your response, provide a "Sources Used" section with all the links
|
162 |
+
5. Be transparent about which information comes from which source
|
163 |
+
"""
|
164 |
domain_context = ""
|
165 |
if include_domains and self._supports_web_search():
|
166 |
safe_domains = [str(d) for d in include_domains if d]
|