Vue Common Types - AIIntegrationOptions
Specifies optional AI service configuration.
import { AIIntegration_Options } from "devextreme/common/ai-integration"
Type:
lang
Specifies the AI response language.
Type:
Configure this property to pass language information to the AI service in a system prompt. You can use language codes such as ISO 639 and IETF BCP 47, or plain language names (for instance, "English").
App.vue
- <script lang="ts" setup>
- import { AIIntegration } from 'devextreme-vue/common/ai-integration';
- const aiIntegration = new AIIntegration({
- sendRequest: ({ prompt }) => {
- // ...
- },
- }, {
- lang: 'en-EN',
- });
- </script>
NOTE
To limit the use of AI resources, specify a single language.