mckaywrigley / chatbot-ui

AI chat for every model.
https://chatbotui.com
MIT License
27.23k stars 7.54k forks source link

Bug: Cannot use Microsoft Azure OpenAI GPT-4-Vision #1490

Open dannykorpan opened 4 months ago

dannykorpan commented 4 months ago

Hi,

I would like to use GPT-4 Vision Preview through the Microsoft OpenAI Service. For this purpose, I have deployed an appropriate model and adjusted the .env.local file accordingly. GPT-4 and the other models work flawlessly. However, as soon as I attempt to use Vision Preview, I encounter the attached error message.

Here is my .env.local file

# Supabase Public
NEXT_PUBLIC_SUPABASE_URL=MYDBURL
NEXT_PUBLIC_SUPABASE_ANON_KEY=MYANONKEY

# Supabase Private
SUPABASE_SERVICE_ROLE_KEY=MYSUPABASESERVICEROLEKEY

# Ollama
NEXT_PUBLIC_OLLAMA_URL=

# API Keys (Optional: Entering an API key here overrides the API keys globally for all users.)
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
GOOGLE_GEMINI_API_KEY=
MISTRAL_API_KEY=
PERPLEXITY_API_KEY=
OPENROUTER_API_KEY=

# OpenAI API Information
NEXT_PUBLIC_OPENAI_ORGANIZATION_ID=

# Azure API Information
AZURE_OPENAI_API_KEY=MYAZUREOPENAIAPIKEY
AZURE_OPENAI_ENDPOINT=https://myendpoint.openai.azure.com/
AZURE_GPT_35_TURBO_NAME=gpt-35-turbo
AZURE_GPT_45_VISION_NAME=gpt-4-vision-preview
AZURE_GPT_45_TURBO_NAME=gpt-4
AZURE_EMBEDDINGS_NAME=text-embedding-ada-002

# General Configuration (Optional)
EMAIL_DOMAIN_WHITELIST=mydomain.com
EMAIL_WHITELIST=

Screenshot of the error message SCR-20240227-nwoe

Microsoft Azure OpenAI model deployment

image

Does anyone have an idea what I'm doing wrong, or where the error might be? I'm using the current version of chatbot-ui, which I just checked out from the git main branch.

Kind Regards, Danny

dannykorpan commented 3 months ago

Anybody?

wizseek commented 3 months ago

Maybe this old issue is related?

Erkin-M commented 3 weeks ago

Facing the same issue with the gpt-4o model. Resource is public Deployment are created