-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] azure-json throws an illegal state exception when running the GetEmbeddingSample code #41159
Comments
This is the json data returned by calling the embedding model: {
"object": "list",
"model": "text-embedding-ada-002",
"data": [
{
"index": 0,
"object": "embedding",
"embedding": Array[1536]
}
],
"usage": {
"prompt_tokens": 1,
"total_tokens": 1
}
} |
Thanks for filing this github issue, @Makato-Sino! @alzimmermsft can you please take a look? /cc @mssfang as fyi |
Thanks for reporting this @Makato-Sino. After a quick investigation this appears to have been broken before and after the change to @mssfang does the service expect this to be a |
Upon further investigation, the reason the exception includes |
Running into the same issue with the beta-10. I can reproduce it pretty easily. I wanted to create an
|
In the implementation,
We do this as it's more performant for the API to response with Base64, For example, network transfer with Base64 is text-based and easily transferable over text protocols. Handling floats requires careful handling (binary data is converted to a text format) to ensure combability with the HTTP protocol. |
Hi @Lucky-Vince. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
As this SDK will never get the |
Describe the bug
I ran the following sample code locally (azure-open-ai:1.0.0-beta.10) to test the basic functions of EmbeddingModel, but an exception was thrown. After switching to azure-open-ai:1.0.0-beta.8, an illegal character error was prompted.
Exception or Stack Trace
azure-open-ai:1.0.0-beta.10:
azure-open-ai:1.0.0-beta.8:
To Reproduce
Steps to reproduce the behavior:
Code Snippet
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
If you suspect a dependency version mismatch (e.g. you see
NoClassDefFoundError
,NoSuchMethodError
or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:mvn dependency:tree -Dverbose
)The text was updated successfully, but these errors were encountered: