Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

合并工具消息和引用消息的拼接格式 #77

Closed
Tracked by #88
crazygo opened this issue Sep 1, 2024 — with Linear · 2 comments
Closed
Tracked by #88

合并工具消息和引用消息的拼接格式 #77

crazygo opened this issue Sep 1, 2024 — with Linear · 2 comments

Comments

Copy link
Contributor

crazygo commented Sep 1, 2024

默认消息格式为

引用消息的格式为

> [!QUOTE]
> Title: xx
> URL: xx
> Selection: xx
> Text: xx

User Input 

用 toml 写的格式是

hbs = """
> [!QUOTE]
{{#if ctx.pageTitle}}
> Title: {{ctx.pageTitle}}
{{/if}}
{{#if ctx.pageUrl}}
> URL: {{ctx.pageUrl}}
{{/if}}
{{#if ctx.selection}}
> Selection: {{ctx.selection}}
{{/if}}
{{#if ctx.text}}
> Text: {{ctx.text}}
{{/if}}

{{chat.input}}
"""
Copy link

linear bot commented Sep 1, 2024

ASK-75 合并工具消息和引用消息的拼接格式

默认消息格式为

引用消息的格式为

> [!QUOTE]
> Title: xx
> URL: xx
> Selection: xx
> Text: xx

User Input 

用 toml 写的格式是

hbs = """
> [!QUOTE]
{{#if ctx.pageTitle}}
> Title: {{ctx.pageTitle}}
{{/if}}
{{#if ctx.pageUrl}}
> URL: {{ctx.pageUrl}}
{{/if}}
{{#if ctx.selection}}
> Selection: {{ctx.selection}}
{{/if}}
{{#if ctx.text}}
> Text: {{ctx.text}}
{{/if}}

{{chat.input}}
"""

@crazygo crazygo added type: feature request New feature or request type: enhancement labels Sep 1, 2024 — with Linear
@crazygo crazygo removed the type: feature request New feature or request label Sep 1, 2024
@crazygo crazygo added this to the 2024-11 milestone Oct 27, 2024
@crazygo crazygo removed this from the 2024-11 milestone Oct 27, 2024
@crazygo
Copy link
Contributor Author

crazygo commented Oct 27, 2024

需要把 Quotes 封装到“工具”外层,默认始终是
{quotes}
{tool prompt}

@crazygo crazygo added this to the Backlog milestone Oct 27, 2024
@crazygo crazygo closed this as completed Nov 4, 2024
@crazygo crazygo modified the milestones: Backlog, 2024-11 Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant