MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / openapi_json

Function openapi_json

api/app/api/chat_gpt_plugin.py:46–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44plugin_config = Blueprint('plugin_config', __name__)
45@plugin_config.route("/.well-known/ai-plugin.json")
46def 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")
69def openapi_yaml():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected