Replies: 1 comment 1 reply
-
|
.NET or Python? I'm not sure of the answer for Python, but for .NET yes, have your AIFunction return a DataContent for the pdf. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, is it possible to have tool that directly return pdf files from tools?
In the responses API there is the option to add files as base64 strings:
{ "type": "input_file", "filename": "PDF-FILE-NAME.pdf", "file_data": f"data:application/pdf;base64,{base64_string}", },
Beta Was this translation helpful? Give feedback.
All reactions