Closed zjcboy closed 1 month ago
Do you mean a fine-tuned model?
currently by modifying the code way to achieve
Could you provide an example?
For example, through a third-party gpt interface, as this doesn't cost much. https://deepbricks.ai/docs
This link requires login. If your API request data structure is other than OpenAI, well, there will be no such option in this plugin, as there are probably many such APIs and it would be impossible to maintain support for all of them.
The only reasonable option would be to add a hook filter (apply_filters()) to the API request in this code, so you could then modify this in your code (add_filter()), which would allow you to update this plugin without overwriting your code every time.
It would be perfect if the plugin could provide a field where you can fill in and modify the api address.
I would prefer that such an option is not available to casual users, because some custom APIs may require a different structure for the data to be sent, which will raise unnecessary questions from users if something does not work for them.
That's why in #8 I create PHP filters that will allow more advanced users to change this URL and the structure of the request data.
When I release v2.5.1, you will be able to add such a line to functions.php
of your theme or any other place in the code over which you have control:
add_filter('acpl/ai_alt_generator/api_url', fn() => 'https://your-url-here');
v2.5.1 released. Here is the documentation for other hooks: https://github.com/android-com-pl/wp-ai-alt-generator?tab=readme-ov-file#for-developers
I hope you can plugin support custom openai interface, currently by modifying the code way to achieve, but each update is very inconvenient. Thanks for your help.