|
12 | 12 | "query"
|
13 | 13 | ],
|
14 | 14 | "summary": "Conversation Request",
|
15 |
| - "description": "Handle conversation requests for the OLS endpoint.\n\nArgs:\n llm_request: The request containing a query, conversation ID, and optional attachments.\n auth: The Authentication handler (FastAPI Depends) that will handle authentication Logic.\n\nReturns:\n Response containing the processed information.", |
| 15 | + "description": "Handle conversation requests for the OLS endpoint.\n\nArgs:\n llm_request: The request containing a query, conversation ID, and optional attachments.\n auth: The Authentication handler (FastAPI Depends) that will handle authentication Logic.\n user_id: Optional user ID used only when no-op auth is enabled.\n\nReturns:\n Response containing the processed information.", |
16 | 16 | "operationId": "conversation_request_v1_query_post",
|
| 17 | + "parameters": [ |
| 18 | + { |
| 19 | + "name": "user_id", |
| 20 | + "in": "query", |
| 21 | + "required": false, |
| 22 | + "schema": { |
| 23 | + "anyOf": [ |
| 24 | + { |
| 25 | + "type": "string" |
| 26 | + }, |
| 27 | + { |
| 28 | + "type": "null" |
| 29 | + } |
| 30 | + ], |
| 31 | + "title": "User Id" |
| 32 | + } |
| 33 | + } |
| 34 | + ], |
17 | 35 | "requestBody": {
|
| 36 | + "required": true, |
18 | 37 | "content": {
|
19 | 38 | "application/json": {
|
20 | 39 | "schema": {
|
21 | 40 | "$ref": "#/components/schemas/LLMRequest"
|
22 | 41 | }
|
23 | 42 | }
|
24 |
| - }, |
25 |
| - "required": true |
| 43 | + } |
26 | 44 | },
|
27 | 45 | "responses": {
|
28 | 46 | "200": {
|
|
94 | 112 | "streaming_query"
|
95 | 113 | ],
|
96 | 114 | "summary": "Conversation Request",
|
97 |
| - "description": "Handle conversation requests for the OLS endpoint.\n\nArgs:\n llm_request: The incoming request containing query details.\n auth: The authentication context, provided by dependency injection.\n\nReturns:\n StreamingResponse: The streaming response generated for the query.", |
| 115 | + "description": "Handle conversation requests for the OLS endpoint.\n\nArgs:\n llm_request: The incoming request containing query details.\n auth: The authentication context, provided by dependency injection.\n user_id: Optional user ID used only when no-op auth is enabled.\n\nReturns:\n StreamingResponse: The streaming response generated for the query.", |
98 | 116 | "operationId": "conversation_request_v1_streaming_query_post",
|
| 117 | + "parameters": [ |
| 118 | + { |
| 119 | + "name": "user_id", |
| 120 | + "in": "query", |
| 121 | + "required": false, |
| 122 | + "schema": { |
| 123 | + "anyOf": [ |
| 124 | + { |
| 125 | + "type": "string" |
| 126 | + }, |
| 127 | + { |
| 128 | + "type": "null" |
| 129 | + } |
| 130 | + ], |
| 131 | + "title": "User Id" |
| 132 | + } |
| 133 | + } |
| 134 | + ], |
99 | 135 | "requestBody": {
|
| 136 | + "required": true, |
100 | 137 | "content": {
|
101 | 138 | "application/json": {
|
102 | 139 | "schema": {
|
103 | 140 | "$ref": "#/components/schemas/LLMRequest"
|
104 | 141 | }
|
105 | 142 | }
|
106 |
| - }, |
107 |
| - "required": true |
| 143 | + } |
108 | 144 | },
|
109 | 145 | "responses": {
|
110 | 146 | "200": {
|
|
349 | 385 | "summary": "Is User Authorized",
|
350 | 386 | "description": "Validate if the logged-in user is authorized to access OLS.\n\nParameters:\n request (Request): The FastAPI request object.\n\nReturns:\n The user's UID and username if authentication and authorization succeed.\n\nRaises:\n HTTPException: If authentication fails or the user does not have access.",
|
351 | 387 | "operationId": "is_user_authorized_authorized_post",
|
| 388 | + "parameters": [ |
| 389 | + { |
| 390 | + "name": "user_id", |
| 391 | + "in": "query", |
| 392 | + "required": false, |
| 393 | + "schema": { |
| 394 | + "anyOf": [ |
| 395 | + { |
| 396 | + "type": "string" |
| 397 | + }, |
| 398 | + { |
| 399 | + "type": "null" |
| 400 | + } |
| 401 | + ], |
| 402 | + "title": "User Id" |
| 403 | + } |
| 404 | + } |
| 405 | + ], |
352 | 406 | "responses": {
|
353 | 407 | "200": {
|
354 | 408 | "description": "The user is logged-in and authorized to access OLS",
|
|
389 | 443 | }
|
390 | 444 | }
|
391 | 445 | }
|
| 446 | + }, |
| 447 | + "422": { |
| 448 | + "description": "Validation Error", |
| 449 | + "content": { |
| 450 | + "application/json": { |
| 451 | + "schema": { |
| 452 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 453 | + } |
| 454 | + } |
| 455 | + } |
392 | 456 | }
|
393 | 457 | }
|
394 | 458 | }
|
|
0 commit comments