Set AI Engine Language to Chinese for Fine-tuned models
-
Hi there,
First of all, I would like to thank you for creating this amazing plugin and training the chatbot well enough to demostrate the power of AI.
Below is the answer from Nyao, I added the code and activated the Snippets, but still got the generated prompt and completion in English, why?
Yes, you can use the Code Snippets plugin to add the custom PHP code for setting the language to Chinese in AI Engine. Here are the steps to do that:
Install and activate the Code Snippets plugin on your WordPress site.
Go to Snippets > Add New in your WordPress dashboard.
Give your snippet a name, such as “Set AI Engine Language to Chinese”.
Copy and paste the following code in the “Code” section:
add_filter( ‘ai_engine_finetune_args’, function( $args ) {
$args[‘language’] = ‘zh-TW’;
return $args;
} );
Click on “Save Changes and Activate”
That’s it! Now, whenever you use the Fine-tuned Model in AI Engine, it will automatically set the language to Chinese.
- The topic ‘Set AI Engine Language to Chinese for Fine-tuned models’ is closed to new replies.