feat: repo map (#496)
* feat: repo map * chore: remove breakline * chore: remove spaces * fix: golang public method * feat: mentions for editing input
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{%- if use_xml_format -%}
|
||||
<filepath>{{filepath}}</filepath>
|
||||
|
||||
{%- if selected_code -%}
|
||||
<context>
|
||||
```{{code_lang}}
|
||||
@@ -19,6 +21,8 @@
|
||||
</code>
|
||||
{%- endif %}
|
||||
{% else %}
|
||||
FILEPATH: {{filepath}}
|
||||
|
||||
{%- if selected_code -%}
|
||||
CONTEXT:
|
||||
```{{code_lang}}
|
||||
|
||||
@@ -17,6 +17,7 @@ Your task is to suggest code modifications at the cursor position. Follow these
|
||||
{% endraw %}
|
||||
|
||||
3. When suggesting suggested code:
|
||||
- DO NOT include three backticks: {%raw%}```{%endraw%} in your suggestion. Treat the suggested code AS IS.
|
||||
- Each element in the returned list is a COMPLETE and INDEPENDENT code snippet.
|
||||
- MUST be a valid json format. Don't be lazy!
|
||||
- Only return the new code to be inserted.
|
||||
@@ -29,4 +30,3 @@ Your task is to suggest code modifications at the cursor position. Follow these
|
||||
|
||||
Remember to ONLY RETURN the suggested code snippet, without any additional formatting or explanation.
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user