I am developing a GPT to search schools in New Zealand via API
Where do I add a default resource_id so that I don’t have to specify in my prompt? Also, I keep getting response too large error when I test GPT. My schema is
openapi: 3.1.0
info:
title: School Data API
description: API for accessing detailed information about schools from the datastore.
version: 1.0.0
servers:
- url: https://catalogue.data.govt.nz/api/3/action
paths:
/datastore_search:
get:
summary: Retrieve school information
operationId: getSchoolData
parameters:
- name: resource_id
in: query
required: true
schema:
type: string
default: "4b292323-9fcc-41f8-814b-3c7b19cf14b3"
example: "4b292323-9fcc-41f8-814b-3c7b19cf14b3"
- name: limit
in: query
description: "Limits the number of records returned in one response"
required: false
schema:
type: integer
default: 100
example: 50
- name: offset
in: query
description: "Skips the number of records specified by offset"
required: false
schema:
type: integer
default: 100
example: 50
responses:
'200':
description: Successfully retrieved data
content:
application/json:
schema:
$ref: '#/components/schemas/SchoolData'
components:
schemas:
SchoolData:
type: object
properties:
_id:
type: integer
School_Id:
type: string
Org_Name:
type: string
Telephone:
type: string
Fax:
type: string
Email:
type: string
Contact1_Name:
type: string
URL:
type: string
Add1_Line1:
type: string
Add1_Suburb:
type: string
Add1_City:
type: string
Add2_Line1:
type: string
Add2_Suburb:
type: string
Add2_City:
type: string
Add2_Postal_Code:
type: string
Urban_Rural_Indicator:
type: string
Org_Type:
type: string
Definition:
type: string
Authority:
type: string
School_Donations:
type: string
CoEd_Status:
type: string
KMEPeakBody:
type: string
Takiwā:
type: string
Territorial_Authority:
type: string
Regional_Council:
type: string
Local_Office_Name:
type: string
Education_Region:
type: string
General_Electorate:
type: string
Māori_Electorate:
type: string
Statistical_Area_2_Code:
type: string
Statistical_Area_2_Description:
type: string
Ward:
type: string
Col_Id:
type: string
Col_Name:
type: string
Latitude:
type: number
format: double
Longitude:
type: number
format: double
Enrolment_Scheme:
type: string
EQi_Index:
type: string
Roll_Date:
type: string
format: date-time
Total:
type: integer
European:
type: integer
Māori:
type: integer
Pacific:
type: integer
Asian:
type: integer
MELAA:
type: integer
Other:
type: integer
International:
type: integer
Isolation_Index:
type: string
Language_of_Instruction:
type: string
BoardingFacilities:
type: string
CohortEntry:
type: string
Status:
type: string
DateSchoolOpened:
type: string
format: date-time