Can't get basic example working

Created on 6 October 2025, 19 days ago

Problem/Motivation

Background I am interested in switching from OpenAI to Azure providers, I created my Models in azure, and even using the CURL examples tested the tokens created with the Target URI Endpoints and it works. BUT I can't get them to work with this module, I created a key with my token as its value, Added a Chat model at /admin/config/ai/providers/azure and filled in all the correct values there I think (I didn't set any advanced settings). Then to test it I visit the /admin/config/ai/explorers/chat_generator but I always get this error.

An error occurred
The following error occurred while processing your request:

Error invoking model response: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.

Of the following exception type:

Drupal\ai\Exception\AiRequestErrorException

Response will appear here.

Config Example

models:
  azure:
    chat:
      Phi-4:
        operation_type: chat
        model_id: Phi-4
        label: Phi-4
        chat_with_image_vision: 0
        chat_with_audio: 0
        chat_with_video: 0
        chat_system_role: 1
        chat_json_output: 0
        max_input_tokens: '16000'
        max_output_tokens: '8000'
        endpoint: 'https://XXXXXXXXXXX-resource.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview'
        api_key: azure_ai_XXXXXXXXXXX
        connect_header: api-key
        custom_key_header: ''
        custom_consumer: ''
        extra_headers: ''
        token_help: ''
        provider: azure

Drupal core 10.5.2
AI (Artificial Intelligence) 1.0.5
Microsoft Azure AI 1.1.0-beta1
OpenAI Provider 1.0.2
OpenAI / ChatGPT Integration 1.0.0-beta6

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024