Skip to content

Commit 8875a53

Browse files
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 394ca3a Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 255a412 commit 8875a53

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

example/src/components/ConversationManager.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ export const ConversationManager: React.FC = () => {
7979
const agent: AgentBase = {
8080
name: 'CodeActAgent',
8181
llm: {
82-
model: 'gpt-4o-mini',
83-
api_key: settings.apiKey || '',
84-
base_url: 'https://api.openai.com/v1'
82+
model: settings.modelName,
83+
api_key: settings.apiKey || ''
8584
}
8685
};
8786

0 commit comments

Comments
 (0)