()
| 44 | plugin_config = Blueprint('plugin_config', __name__) |
| 45 | @plugin_config.route("/.well-known/ai-plugin.json") |
| 46 | def openapi_json(): |
| 47 | current_domain = request.host_url |
| 48 | print('request to :', current_domain, '\n') |
| 49 | return jsonify({ |
| 50 | "schema_version": "v1", |
| 51 | "name_for_human": "censusGPT", |
| 52 | "name_for_model": "census_data_and_sql_queries", |
| 53 | "description_for_human": "censusGPT", |
| 54 | "description_for_model": "CensusGPT provides information derived from the 2020 US Census. The data is provided as a chart along with the SQL query used to calculate it.", |
| 55 | "auth": { |
| 56 | "type": "none" |
| 57 | }, |
| 58 | "api": { |
| 59 | "type": "openapi", |
| 60 | "url": f"{current_domain}openapi.yaml", |
| 61 | "is_user_authenticated": False |
| 62 | }, |
| 63 | "logo_url":"https://censusgpt.com/logo192.png", |
| 64 | "contact_email": "rahul@caesarhq.com", |
| 65 | "legal_info_url": "https://censusgpt.com/privacy" |
| 66 | }) |
| 67 | |
| 68 | @plugin_config.route("/openapi.yaml") |
| 69 | def openapi_yaml(): |
nothing calls this directly
no outgoing calls
no test coverage detected