-
-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Ai prompt #276
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: Ai prompt #276
Conversation
|
I think it is an important feature to be able to customize the prompt, thank you for the contribution! |
|
I published version 2.2.0 on npm: https://www.npmjs.com/package/attranslate |
|
Tested, works. Thanks for merging - would be great to give me a credit if possible :D |
|
Thank you, but I am not sure what kind of credits are you talking, something like mentionung your name in the Readme? 🤔 |
|
Yes, that is what I meant - usually packages mention collaborators either
on a readme or on a version history log. That section also encourages other
contributors to write PRs
Enver Suljić
Co-founder | stagecoding.com
[image: Photo]
E: ***@***.***
A: Stage Coding, Travnik, Luka bb, 72270, Bosnia and Herzegovina
[image: linkedin icon] <https://www.linkedin.com/in/enversuljic>
…On Mon, Apr 28, 2025, 12:41 fk ***@***.***> wrote:
*fkirc* left a comment (fkirc/attranslate#276)
<#276 (comment)>
Thank you, but I am not sure what kind of credits are you talking,
something like mentionung your name in the Readme? 🤔
—
Reply to this email directly, view it on GitHub
<#276 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB47YU5UUFBF2JC7VH3JHHT23YAUXAVCNFSM6AAAAAB36PMCT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZUHAZDGMJQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Please make a PR for this, to make it more clear what is meaned |
|
#278 here it is, feel free to edit it. I made it as short as possible, you will probably have more contributors |
Add Custom Prompt Support for OpenAI and TypeChat Services
Overview
This PR adds support for a custom prompt parameter (
--prompt) that allows users to provide specific instructions to the translation services. This feature is particularly useful for maintaining consistency in technical terminology and ensuring proper translation of domain-specific content.Changes
promptparameter toTServiceArgsinterfaceKey Features
--promptparameterUsage Examples
Implementation Details
Benefits
Documentation
Testing
Notes
This feature enhances the flexibility and control users have over the translation process, particularly for applications with technical or domain-specific content.
I didn't test the TypeChat implementation, only OpenAI (I am using it a lot with my projects). Please someone do a test.