Skip to content

Extends #445 to other providers which many provides deepseek#458

Merged
di-sukharev merged 2 commits intodi-sukharev:masterfrom
kaovilai:thiknagain
Apr 14, 2025
Merged

Extends #445 to other providers which many provides deepseek#458
di-sukharev merged 2 commits intodi-sukharev:masterfrom
kaovilai:thiknagain

Conversation

@kaovilai
Copy link
Contributor

No description provided.

Copy link
Owner

@di-sukharev di-sukharev left a 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

@di-sukharev
Copy link
Owner

@kaovilai thank you for the contribution, could you follow up with my comment please <3

@kaovilai kaovilai requested a review from di-sukharev April 12, 2025 08:15
Signed-off-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
Copy link
Owner

@di-sukharev di-sukharev left a 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

@di-sukharev di-sukharev merged commit b3700ae into di-sukharev:master Apr 14, 2025
5 checks passed
@di-sukharev
Copy link
Owner

@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?

@kaovilai
Copy link
Contributor Author

maybe.. worst case revert :D

@di-sukharev
Copy link
Owner

@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

@kaovilai
Copy link
Contributor Author

https://github.com/di-sukharev/opencommit/actions/workflows/test.yml

weird.. same test ran in pr fine

@kaovilai
Copy link
Contributor Author

#461

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