This commit is contained in:
Vincent G 2025-12-09 21:46:38 +01:00
parent 72bf84d8fa
commit fc1817caa5
10 changed files with 42 additions and 16 deletions

View file

@ -1,6 +1,6 @@
from __future__ import annotations
__all__ = ["__version__", "run_programmatic"]
__version__ = "1.0.4"
__version__ = "1.0.5"
from vibe.core.programmatic import run_programmatic

View file

@ -122,6 +122,11 @@ class OpenAIAdapter(APIAdapter):
model_name, converted_messages, temperature, tools, max_tokens, tool_choice
)
if enable_streaming:
payload["stream"] = True
if provider.name == "mistral":
payload["stream_options"] = {"stream_tool_calls": True}
headers = self.build_headers(api_key)
body = json.dumps(payload).encode("utf-8")