Hi,
would be grateful for any advice or help .
I successfully created a new F/T model using GPT4.1-mini but getting an error when using it with uploaded files.
#-------Test NEW F/T MODEL-------#
response = client.responses.create(
model=âft:gpt-4.1-mini-2025-04-14:xxxxxxxxxxxxxxxxxxxxxâ,
input=[
{
âroleâ: âuserâ,
âcontentâ: [
{âtypeâ: âinput_fileâ, âfile_idâ: file_id}, # PDF uploaded in previous step
{âtypeâ: âinput_textâ, âtextâ: âYou are a professional editor responsible for extracting citations from academic papers.â} ] } ] )
Error message:
Error code: 400 - {âerrorâ: {âmessageâ: âThere was an issue with your request. Please check your inputs and try againâ, âtypeâ: âinvalid_request_errorâ, âparamâ: None, âcodeâ: None}}
As per https://platform.openai.com/docs/guides/pdf-files: âTo help models understand PDF content, we put into the modelâs context both the extracted text and an image of each page. The model can then use both the text and the images to generate a response.â
Model details (https://platform.openai.com/docs/models/gpt-4.1-mini) show that GPT4.1-mini can be used for Fine-tuning, can use text and image modalities as input, and supports âfile searchâ as part of its tool set.
Is anyone using a F/T model with uploaded files?
Maybe my training data is no longer in the appropriate format give the text+image content extracted from the PDF by OpenAI upon upload? Iâm re-using the training file from our âcurrent/liveâ model which was trained on GPT3.5-turbo - the best model available for F/T at the time. It has a simple list of 100s of examples e.g. a paragraph of text as input, with the list of citations found in that text as output (or âNot foundâ).