@mambozzo For some reason, I don’t see a content
property in the results
array attoolCallStep.step_details.tool_calls[0].file_search.results
.
When I console.log this, here’s what I see in terminal:
Console log code:
const run = await openai.beta.threads.runs.steps.list(
threadId,
event.run_id
)
// Find the step with tool_calls
const toolCallStep = run.data.find(
(step) => step.type === 'tool_calls'
)
console.log(
'toolCallStep: ',
toolCallStep.step_details.tool_calls[0].file_search.results
)
Produces this in server terminal:
toolCallStep: [
> {
> file_id: 'file-Jfe89GL6LGMGULww2kA2CW',
> file_name: 'Aerobic high-intensity intervals are superior to improve V̇O2max compared with sprint intervals in well-trainned men.pdf',
> score: 0.8963497064836998
> },
> {
> file_id: 'file-Jfe89GL6LGMGULww2kA2CW',
> file_name: 'Aerobic high-intensity intervals are superior to improve V̇O2max compared with sprint intervals in well-trainned men.pdf',
> score: 0.895239367268356
},
// ... and so on
Shouldn’t I be seeing a content
property that contains the extracted file content? I also could not find this property in the API documentation. Thanks for any help!!