Show knowledge sources and pass readable passages to chat

This commit is contained in:
Mark Gregory
2026-11-17 10:08:27 +00:00
parent a79bab404d
commit e51e1b483a
5 changed files with 69 additions and 15 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ class Handler(BaseHTTPRequestHandler):
if self.path == '/chat-tools/api/chat':
system, user = message['messages']
valid = (system['role'] == 'system' and 'fixture/visible-repo' in system['content']
and 'source: knowledge.md' in system['content']
and 'Source: knowledge.md' in system['content']
and user == {'role': 'user', 'content': 'can you see my git repos'})
if not valid:
self.reply(400)