Added support for structured output (JSON mode) from the OpenAI API in `openai.py` and `azure_openai.py`. When `response_format` is used to request structured data, the new logic checks for the `message.parsed` attribute. If it exists, it's serialized into a JSON string as the final content. If not, the code falls back to the existing `message.content` handling, ensuring backward compatibility. |
||
|---|---|---|
| .. | ||
| deprecated | ||
| __init__.py | ||
| anthropic.py | ||
| azure_openai.py | ||
| bedrock.py | ||
| binding_options.py | ||
| gemini.py | ||
| hf.py | ||
| jina.py | ||
| llama_index_impl.py | ||
| lmdeploy.py | ||
| lollms.py | ||
| nvidia_openai.py | ||
| ollama.py | ||
| openai.py | ||
| zhipu.py | ||