-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unable to Extract Structured Data with chat_azure #271
Comments
Somewhat more minimal reprex: libary(ellmer)
chat <- chat_azure(deployment_id = "gpt-4o-mini")
chat$chat("
Extract names from the following text:
Jane Doe is a doctor. John Doe is a lawyer.
")
chat$extract_data(
"
Extract names from the following text:
Jane Doe is a doctor. John Doe is a lawyer.",
type = type_array(items = type_string("name"))
) Looks like the primary problem isn't that the root error isn't displayed:
|
Also I need to bump the default But it looks like something has changed in that API so I'll need to do a little work. |
Hmmm I can get it working with |
So it now supports structured data extraction (Fixes #271). And add tests.
Apologies for dropping the ball on this...
This should explain things. |
I am using an Azure private instance with GPT-4o, and while basic chat functionality works fine, I am unable to extract structured data using the extract_data() method in the ellmer package. The same setup works perfectly in Python for structured data tasks, but in R, it fails with an HTTP 400 error.
Notes
The Azure private instance is correctly configured.
The same functionality works as expected in Python, including structured data extraction.
Standard chat operations in R (via chat$chat()) work correctly.
Let me know if more details are needed to debug this issue. Thank you! 😊
The text was updated successfully, but these errors were encountered: