Skip to content

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

fix(llm-api-key): overwrite default top_p on key test (#5301)

Hassieb Pakzadb0c12f02ec45
diff --git a/web/src/features/llm-api-key/server/router.ts b/web/src/features/llm-api-key/server/router.ts
index 3de890398b..6c167bb1bc 100644
--- a/web/src/features/llm-api-key/server/router.ts
+++ b/web/src/features/llm-api-key/server/router.ts
@@ -178,6 +178,7 @@ export const llmApiKeyRouter = createTRPCRouter({
adapter: input.adapter,
provider: input.provider,
model,
+ top_p: 0.9, // Langchain sets 1 as default that is not supported HuggingFace
},
baseURL: input.baseURL,
apiKey: input.secretKey,