optimize: refine context prompts (#1579)
This commit is contained in:
@@ -1,26 +1,16 @@
|
|||||||
{% if selected_files -%}
|
{% if selected_files -%}
|
||||||
<selected_files>
|
<selected_files>
|
||||||
{%- for file in selected_files %}
|
{%- for file in selected_files %}
|
||||||
<file>
|
<file path="{{file.path}}" language="{{file.file_type}}">
|
||||||
<filepath>{{file.path}}</filepath>
|
|
||||||
<content>
|
|
||||||
```{{file.file_type}}
|
|
||||||
{{file.content}}
|
{{file.content}}
|
||||||
```
|
|
||||||
</content>
|
|
||||||
</file>
|
</file>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</selected_files>
|
</selected_files>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{% if selected_code -%}
|
{% if selected_code -%}
|
||||||
<selected_code>
|
<selected_code path="{{selected_code.path}}" language="{{selected_code.file_type}}">
|
||||||
<filepath>{{selected_code.path}}</filepath>
|
|
||||||
<content>
|
|
||||||
```{{selected_code.file_type}}
|
|
||||||
{{selected_code.content}}
|
{{selected_code.content}}
|
||||||
```
|
|
||||||
</content>
|
|
||||||
</selected_code>
|
</selected_code>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user