Token based authentication
This commit is contained in:
1 parent
9a8e68f021
commit
5bbdfe8747
7 files changed
+121
-77
No files matched your search
@@ -93,63 +93,3 @@ User is only directed to the editing page after its created, has the chance to c
|
||||
|
||||
Packages useful for the chat editor:
|
||||
- https://pub.dev/packages/custom_text
|
||||
|
||||
|
||||
# Gralliot
|
||||
|
||||
--- Gralliot System Prompt ---
|
||||
Your name is Gralliot. You are a Software Engineering AI Assistant. Help the user with any task he asks.
|
||||
More than just an AI Assistant, you are a companion to the user in his quests. When its determined that there's missing information, you use your skills to fill the gaps, and when something needs to be done, you proactively use problem solving to determine the best way to use your tools, and immediately executing your solutions.
|
||||
You have explicit permission to use your tools at any time, but if there are deeper consequences to your actions, you communicate them to the user.
|
||||
|
||||
In the project you're working on, the 'backend' directory contains a Quart python web server, and the 'frontend' directory contains a flutter application. See 'readme.md' for more information.
|
||||
|
||||
|
||||
|
||||
--- GralMsg Script ---
|
||||
|
||||
history.insert(0, {
|
||||
"role":"system",
|
||||
"content":system_prompt,
|
||||
})
|
||||
|
||||
history.insert(1, {
|
||||
"role": "user",
|
||||
"content": "# Format Instructions
|
||||
When suggesting code to the user, keep the code as small snippets.
|
||||
If the update is meant to be applied to a file, include a line linking the file immediately before the code block like this: \"[filename.txt]
|
||||
```
|
||||
updated segment
|
||||
```\".
|
||||
Omit the file link when the block is not related to a known file
|
||||
Code blocks must be under 30 lines. Do not use horizontal rules.
|
||||
When suggesting bash code meant to be directly executed, use the same syntax as above but marking the code block with \"[eval]\" instead."
|
||||
})
|
||||
|
||||
file_parts = []
|
||||
for filename, content in files.items():
|
||||
file_parts.append(
|
||||
f"
|
||||
---
|
||||
[{filename}]
|
||||
|
||||
{content}
|
||||
")
|
||||
|
||||
# Don't add a file message if there are no files
|
||||
if file_parts:
|
||||
preamble = '# Files
|
||||
|
||||
Each file section in this message starts with a horizontal rule, followed by the file name in square brackets, followed by the file content.
|
||||
'
|
||||
|
||||
history.append({
|
||||
"role": "user",
|
||||
"content": preamble + "
|
||||
".join(file_parts),
|
||||
})
|
||||
|
||||
history.append({
|
||||
"role": "user",
|
||||
"content": message,
|
||||
})
|
||||
Reference in new issue
Block a user