fix(parallel_ai): register the extract route with the gateway allowlist and types

Three CI failures from adding the route:

- test_gateway_plus_backend_covers_full_app requires every app route to be
  exposed by a component; /parallel_ai/ joins the pass-through prefixes.
- The route appears in the proxy OpenAPI spec, so the dashboard types gain the
  path and its operation.
- tests/.../parallel_ai/extract/ had no __init__.py while its parent package
  does, so pytest named the module by basename alone and it collided with
  fal_ai/test_cost_calculator.py.
This commit is contained in:
James Liounis 2026-08-21 17:00:34 -04:00
parent 52e7ea4332
commit 8dce2171d6
3 changed files with 38 additions and 0 deletions

View file

@ -94,6 +94,7 @@ GATEWAY_PATH_PREFIXES: tuple[str, ...] = (
"/langfuse/",
"/vllm/",
"/mistral/",
"/parallel_ai/",
"/groq/",
"/voyage/",
"/cursor/",

View file

@ -9842,6 +9842,23 @@ export interface paths {
patch?: never;
trace?: never;
};
"/parallel_ai/v1/extract": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/** Parallel Ai Extract Proxy Route */
post: operations["parallel_ai_extract_proxy_route_parallel_ai_v1_extract_post"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/plugin-proxy/{plugin_name}/{path}": {
parameters: {
query?: never;
@ -49691,6 +49708,26 @@ export interface operations {
};
};
};
parallel_ai_extract_proxy_route_parallel_ai_v1_extract_post: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Successful Response */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": unknown;
};
};
};
};
plugin_proxy_plugin_proxy__plugin_name___path__get: {
parameters: {
query?: never;