feat: Enhance OpenAI provider configuration with extraBody support and apiType validation

This commit is contained in:
outlook84 authored and Xubin Ren committed 2026-05-25 01:23:36 +08:00
1 parent d472595417
commit c433d60681
9 files changed
+230 -29

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ def _make_provider_core(
extra_headers=p.extra_headers if p else None,
spec=spec,
extra_body=p.extra_body if p else None,
api_type=p.api_type if p else "auto",
api_type=p.api_type if p and provider_name == "openai" else "auto",
)
provider.generation = resolved.to_generation_settings()