OpenAI API-Anbieter: Unterschied zwischen den Versionen
| Zeile 13: | Zeile 13: | ||
===Einstellungen für den OpenAI API Anbieter=== | ===Einstellungen für den OpenAI API Anbieter=== | ||
#Gehen Sie auf die Seite ''Website-Administration > Allgemein > KI > KI-Anbieter''. | #Gehen Sie auf die Seite ''Website-Administration > Allgemein > KI > KI-Anbieter''. | ||
#Aktivieren Sie den OpenAI API-Anbieter durch Anklicken des Schalters [[Image:toggle.png| | #Aktivieren Sie den OpenAI API-Anbieter durch Anklicken des Schalters [[Image:toggle.png|32px]]. | ||
#Klicken Sie auf den Link ''Einstellungen'' des OpenAI API-Anbieters. | #Klicken Sie auf den Link ''Einstellungen'' des OpenAI API-Anbieters. | ||
#Im Abschnitt ''Einstellungen'' tragen Sie Folgendes ein: | #Im Abschnitt ''Einstellungen'' tragen Sie Folgendes ein: | ||
Version vom 31. Oktober 2024, 13:11 Uhr
Neue Funktionalität
in Moodle 5.2!
Die Integration von Moodle mit OpenAI ermöglicht den Zugriff auf KI-Aktionen wie Textgenerierung, Bildgenerierung oder Zusammenfassung von Kursinhalten.
Weitere Informationen über OpenAI finden Sie unter https://platform.openai.com.
Voraussetzungen
Für die Integration in Moodle benötigen Sie ein OpenAI-Konto mit Zugang zu einem kostenpflichtigen API-Schlüssel. In Moodle LMS 4.5.0 sind sowohl ein OpenAI-API-Schlüssel als auch eine OpenAI-Organisations-ID erforderlich, ab Moodle 4.5.1 ist die Organisations-ID optional.
Beim Einrichten eines OpenAI-Kontos mit einem API-Schlüssel können zwar sowohl von kostenlosen als auch von kostenpflichtigen Konten Schlüssel generiert werden, die API-Nutzung ist jedoch auf die für das Konto verfügbaren kostenpflichtigen Tokens beschränkt: Der Zugriff von Moodle auf die API von OpenAI erfordert ein kostenpflichtiges Abonnement (z. B. Pay-as-you-go). Der Zugang, die Nutzungsbeschränkungen und die Preisstufen hängen vom verwendeten Modell ab, siehe OpenAI API Pricing Page für aktuelle Informationen.
Einstellungen für den OpenAI API Anbieter
- Gehen Sie auf die Seite Website-Administration > Allgemein > KI > KI-Anbieter.
- Aktivieren Sie den OpenAI API-Anbieter durch Anklicken des Schalters
. - Klicken Sie auf den Link Einstellungen des OpenAI API-Anbieters.
- Im Abschnitt Einstellungen tragen Sie Folgendes ein:
- OpenAI API-Key: Sie können den Schlüssel über Ihr OpenAI-Konto > API-Schlüssel erhalten (OpenAI API keys).
- OpenAI organization ID: You find this in your OpenAI account / Organization settings page (OpenAI account). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)
- Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour.
- Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.
- Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.
- Maximum number of requests per user can be configured after enable “Set user rate limit”.
- In the “Actions” area you can control which available Actions are enabled and configure further Action settings.
Configuring OpenAI API Provider actions

The following Action settings are available for the OpenAI Provider.
Generate text: You can configure the following settings:
- AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about at OpenAI Models. By default, the model is set to “GPT-4o”, but this can be configured to any other compatible model. For more details, see your organization's settings and limits information.
- API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit Model endpoint compatibility.
- System instruction: There are default system instructions in place to help direct the expected response format from the AI, but these can be customised to suit your specific needs. These are used to ensure a smooth user experience where only the requested text generation is returned, with no salutations, repetition of the request etc. It is therefore recommended these are not modified unless you are confident the change is absolutely necessary.
Summarise text: The required configuration is the same as for the Generate text Action.
Generate image: You can configure the following settings:
- AI model: The default is set to “dall-e-3” but it can be changed to any other image generation compatible model. For more details, visit: DALL-E Models.
- API endpoint: Please ensure your API endpoint is compatible with your selected model.
With all of the above enabled and configured, the OpenAI Provider can be used for all of the AI Placements available in your Moodle LMS instance; Course Assistance and HTML Text Editor Placements. Don't forget to also enable and configure AI Placements settings.

