Send PDF with OpenAI Plugin

Hello,

I am using Open AI plugin to send a PDF file and analyse it with “create a chat completion”

with the following prompt :

Please provide a JSON output with the following information extracted from the attached PDF file {{pdf}} :
Departure Place Name: The name of the place of departure.
Departure Time: The time of departure in the format timestamp with time zone (timespamptz).
End Time: The time of arrival/end in the format timestamp with time zone (timespamptz).
Google Place ID: A new, unique identifier for the departure place.
Google Photo ID: A unique identifier for a photo of the departure place.
Price: The price in numerical format with two decimal places.
Category: The category of the event/place, which can be one of the following: “transport”, “restauration”, or “attraction”.

Return only the json no further text

He is enabled to return any field :

id: “chatcmpl-9ekgWvzvhJ6AKmUUtEbnKUwr07LiB”

object: “chat.completion.chunk”

created: 1719499604

model: “gpt-4-turbo-2024-04-09”

choices

0

index: 0

logprobs: null

finish_reason: “stop”

message

role: “assistant”

content: “{ “Departure Place Name”: “”, “Departure Time”: “”, “End Time”: “”, “Google Place ID”: “”, “Google Photo ID”: “”, “Price”: “”, “Category”: “” }”

I have tried directly on chatgpt and this prompt is working, any idea or how i could solve it ? :slight_smile: