Skip to content

MBS-9943: Implement aitool_mistralai#50

Open
sh-csg wants to merge 2 commits intomainfrom
MBS-9943-Mistral-AI-tool
Open

MBS-9943: Implement aitool_mistralai#50
sh-csg wants to merge 2 commits intomainfrom
MBS-9943-Mistral-AI-tool

Conversation

@sh-csg
Copy link
Copy Markdown
Contributor

@sh-csg sh-csg commented Feb 20, 2025

No description provided.

@sh-csg sh-csg self-assigned this Feb 20, 2025
@sh-csg sh-csg force-pushed the MBS-9943-Mistral-AI-tool branch 3 times, most recently from ab8397f to fbaa966 Compare February 22, 2025 07:01
@sh-csg sh-csg force-pushed the MBS-9943-Mistral-AI-tool branch from fbaa966 to d2d7ddf Compare February 22, 2025 07:24
'feedback' => $models,
'singleprompt' => $models,
'translate' => $models,
'itt' => ['pixtral-large-latest'],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add purpose questiongeneration here

* @author Stefan Hanauska <stefan.hanauska@csg-in.de>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class connector extends \local_ai_manager\base_connector {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the mistral API is pretty identical to the OpenAI API. So I recommend to inherit from \aitool_chatgpt\connector instead from base_connector and only overwrite the methods that needs to be overwritten. An alternate approach would be to use a wrapper pattern like in #74. But in this case I believe inheriting from \aitool_chatgpt\connector would be the easier approach.

* Connector for Mistral AI.
*
* @package aitool_mistral
* @copyright ISB Bayern, 2025
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess that's the convention we are using? :)

Suggested change
* @copyright ISB Bayern, 2025
* @copyright 2025 ISB Bayern

* aitool_mistral privacy provider class.
*
* @package aitool_mistral
* @copyright ISB Bayern, 2025
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

Comment on lines +17 to +24
/**
* aitool_mistral privacy provider class.
*
* @package aitool_mistral
* @copyright ISB Bayern, 2025
* @author Stefan Hanauska <stefan.hanauska@csg-in.de>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove, no need for this extra phpdoc if you have a class phpdoc

* Lang strings for aitool_mistral - EN.
*
* @package aitool_mistral
* @copyright ISB Bayern, 2025
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

* Version file for aitool_mistral.
*
* @package aitool_mistral
* @copyright ISB Bayern, 2025
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

@PhMemmel PhMemmel changed the title Mbs 9943 mistral ai tool MBS-9943: Implement aitool_mistralai Jul 30, 2025
* Instance class for the connector instance of aitool_mistral.
*
* @package aitool_mistral
* @copyright ISB Bayern, 2025
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

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