-
Notifications
You must be signed in to change notification settings - Fork 368
Extends #445 to other providers which many provides deepseek #458
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets please move this duplicated code:
let content = message.content as string;
if (content && content.includes('<think>')) {
return content.replace(/<think>[\s\S]*?<\/think>/g, '').trim();
}
into a function and reuse it. it may accept tag: string
argument, which should be think
in each of the cases, but may vary i guess in different models
@kaovilai thank you for the contribution, could you follow up with my comment please <3 |
Signed-off-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for contribution <3
@kaovilai hi again, i think it broke the tests somehow https://github.com/di-sukharev/opencommit/actions/runs/14440831852/job/40490512204 could you please take a look? |
maybe.. worst case revert :D |
@kaovilai yeah :), i just dont want to revert your contribution, its necessary. hope you have time, i dont think its something wrong with the code itself, looks like a dependency is missing |
https://github.com/di-sukharev/opencommit/actions/workflows/test.yml weird.. same test ran in pr fine |
No description provided.