You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the code used in main.py it looks like an improper OpenAPI spec would be generated by the sub app, and the static one put in the .well-known directory also seems wrong potentially since it doesn't have the /sub base path.
The following code doesn't have root_in_path_servers set (see docs) so FastAPI would automatically add an additional OpenAPI servers entry with "/sub" as a value and that makes the ChatGPT plugin integration complain. Is that part of why a static one was put in .well-known vs letting FastAPI automatically handle it?
Additionally the OpenAPI spec in .well-known shows a path for /query which is not the proper sub-app path of /sub/query. Was the sub-app generated purely to generate an OpenAPI spec that just had one endpoint to show ChatGPT, but the intent is to have it hit the /query endpoint on the main app? That seems to be what it's doing but can't tell if that is working accidentally.
sub_app=FastAPI(
title="Retrieval Plugin API",
description="A retrieval API for querying and filtering documents based on natural language queries and metadata",
version="1.0.0",
servers=[{"url": "https://your-app-url.com"}],
dependencies=[Depends(validate_token)],
)
app.mount("/sub", sub_app)
Thanks for taking a look.
The text was updated successfully, but these errors were encountered:
Given the code used in main.py it looks like an improper OpenAPI spec would be generated by the sub app, and the static one put in the .well-known directory also seems wrong potentially since it doesn't have the
/sub
base path.The following code doesn't have
root_in_path_servers
set (see docs) so FastAPI would automatically add an additional OpenAPI servers entry with "/sub" as a value and that makes the ChatGPT plugin integration complain. Is that part of why a static one was put in .well-known vs letting FastAPI automatically handle it?Additionally the OpenAPI spec in .well-known shows a path for /query which is not the proper sub-app path of
/sub/query
. Was the sub-app generated purely to generate an OpenAPI spec that just had one endpoint to show ChatGPT, but the intent is to have it hit the /query endpoint on the main app? That seems to be what it's doing but can't tell if that is working accidentally.Thanks for taking a look.
The text was updated successfully, but these errors were encountered: