Skip to content

[Bug]: Azure Endpoint gives HTTP 400 - Unsupported data type error #1360

Closed

Description

@regstuff

What happened?

This is the error message I get when I send any message:
Something went wrong. Here's the specific error message we encountered: Failed to send message. HTTP 400 - Unsupported data type

Steps to Reproduce

Here is the Azure section of my .env file

AZURE_API_KEY=redacted
AZURE_OPENAI_MODELS=gpt4-turbo
AZURE_OPENAI_DEFAULT_MODEL=gpt4-turbo
# PLUGINS_USE_AZURE="true"
#AZURE_USE_MODEL_AS_DEPLOYMENT_NAME=TRUE

AZURE_OPENAI_API_INSTANCE_NAME=engpub-openai-switzerland
AZURE_OPENAI_API_DEPLOYMENT_NAME=gpt-4-default
AZURE_OPENAI_API_VERSION=2023-07-01-preview

My Azure instance is working. The following curl command returns a proper response

curl "https://engpub-openai-switzerland.openai.azure.com/openai/deployments/gpt-4-default/chat/completions?api-version=2023-07-01-preview" \
  -H "Content-Type: application/json" \
  -H "api-key: Redacted" \
  -d "{
  \"messages\": [{\"role\":\"system\",\"content\":\"You are an AI assistant that helps people find information.\"}],
  \"max_tokens\": 800,
  \"temperature\": 0.7,
  \"frequency_penalty\": 0,
  \"presence_penalty\": 0,
  \"top_p\": 0.95,
  \"stop\": null
}"

This is my settings pane in Librechat
image

Not sure if this is a bug or if I'm doing something wrong. This is my first time with LibreChat. OpenAI endpoints work fine btw.
Great app btw!

What browsers are you seeing the problem on?

Microsoft Edge

Relevant log output

No response

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. locked and limited conversation to collaborators on Dec 15, 2023
  2. converted this issue into a discussion #1361 on Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions