Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(llm): enforce runtime timeout for all providers (#14466)

Tobias Wochinger2205b06c5e51
diff --git a/packages/shared/src/server/llm/utils.ts b/packages/shared/src/server/llm/utils.ts
index 210f2f59e5..967e0d3498 100644
--- a/packages/shared/src/server/llm/utils.ts
+++ b/packages/shared/src/server/llm/utils.ts
@@ -5,11 +5,9 @@ import { LLMAdapter } from "./types";
const ExtraHeaderSchema = z.record(z.string(), z.string());
-export const RUNTIME_TIMEOUT_ADAPTERS = new Set([
- LLMAdapter.VertexAI,
- LLMAdapter.GoogleAIStudio,
- LLMAdapter.OpenAI,
-]);
+export const RUNTIME_TIMEOUT_ADAPTERS = new Set<LLMAdapter>(
+ Object.values(LLMAdapter),
+);
export async function executeWithRuntimeTimeout<T>({
enabled,