From 8875a53faa2efbbcd005f7dcb077d394e60a3028 Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 30 Oct 2025 15:26:00 +0000 Subject: [PATCH] Fix example app to use user settings instead of hardcoded values - Replace hardcoded 'gpt-4o-mini' with settings.modelName in ConversationManager - Remove base_url from LLM configuration to use default provider settings - Fixes issue introduced in commit 394ca3a47838c82afcae9e826b06d2bac7a81fa7 Co-authored-by: openhands --- example/src/components/ConversationManager.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/example/src/components/ConversationManager.tsx b/example/src/components/ConversationManager.tsx index 1951aa4..4ce8531 100644 --- a/example/src/components/ConversationManager.tsx +++ b/example/src/components/ConversationManager.tsx @@ -79,9 +79,8 @@ export const ConversationManager: React.FC = () => { const agent: AgentBase = { name: 'CodeActAgent', llm: { - model: 'gpt-4o-mini', - api_key: settings.apiKey || '', - base_url: 'https://api.openai.com/v1' + model: settings.modelName, + api_key: settings.apiKey || '' } };