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

feat(?sum): add templates feature #79

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

monotykamary
Copy link
Contributor

What's this PR do?

  • add arbitrary templates argument and let Dify handle the casing for ?sum

@monotykamary monotykamary requested a review from namnhce August 29, 2024 10:44
var data *model.Sum
var err error

switch len(message.ContentArgs) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cái template mình có thể để cụ thể nó là: short/detail hay gì gì đó được khum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah vậy thì enum luôn

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. với làm nó không phụ thuộc vào vị trí của cái args mình điền vào thì hay hơn.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aight aight done ser 👍

var data *model.Sum
var err error

switch len(message.ContentArgs) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. với làm nó không phụ thuộc vào vị trí của cái args mình điền vào thì hay hơn.

@monotykamary monotykamary force-pushed the feat/pass-templates-dify branch from 1773108 to e0f260e Compare August 30, 2024 03:42
@namnhce namnhce force-pushed the main branch 2 times, most recently from 914f028 to f74b30b Compare October 9, 2024 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants