Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: BadRequestError: Unsupported data type #5697

Closed
DavidHWWang opened this issue Mar 29, 2024 · 4 comments
Closed

Python: BadRequestError: Unsupported data type #5697

DavidHWWang opened this issue Mar 29, 2024 · 4 comments
Assignees
Labels
python Pull requests for the Python Semantic Kernel

Comments

@DavidHWWang
Copy link

Describe the bug
When manually adding memories, encounter
ServiceResponseException: ("<class 'semantic_kernel.connectors.ai.open_ai.services.azure_text_embedding.AzureTextEmbedding'> service failed to generate embeddings", BadRequestError('Unsupported data type'))

I've deployed text-embedding-ada-002 on Azure openai studio, and changed deployment_name in notebook.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'python\notebooks\06-memory-and-embeddings.ipynb'
  2. Run await populate_memory(memory)

Platform

  • OS: Windows 11
  • IDE: VS Code
  • Language: Python 3.11.5
  • Source: semantic-kernel==0.9.4b1
@markwallace-microsoft markwallace-microsoft added python Pull requests for the Python Semantic Kernel triage labels Mar 29, 2024
@moonbox3 moonbox3 self-assigned this Mar 29, 2024
@moonbox3 moonbox3 removed the triage label Mar 29, 2024
@moonbox3
Copy link
Contributor

Hi @DavidHWWang, could you please verify your model deployment? I am running the following, and it works well for me:

image

image

@DavidHWWang
Copy link
Author

Hi @moonbox3 . I found out that I set the wrong endpoint. Thanks.

@moonbox3
Copy link
Contributor

Glad you got it figured out! Will close the issue.

@StrideIT
Copy link

@moonbox3 hint fixed my issue. Endpoint var was missing. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

No branches or pull requests

4 participants