Skip to content

Commit

Permalink
OpenAI base_url to be changeable
Browse files Browse the repository at this point in the history
  • Loading branch information
GwonHyeok committed Feb 9, 2025
1 parent 0b5b841 commit c4db890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/chat/chat-setting-side-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ export default function ChatSettingSideBar({isRightSidebarOpen, chatRoomId}: Cha
)}
</SelectContent>
</Select>
{selectedLLMProvider?.id === 'ollama' && (
{selectedLLMProvider && (['ollama', 'openai'].includes(selectedLLMProvider.id)) && (
<Input
type="text"
placeholder="API endpoint (default: http://localhost:11434)"
placeholder={`API endpoint (default: ${selectedLLMProvider?.id === 'ollama' ? 'http://localhost:11434' : 'https://api.openai.com/v1'})`}
value={selectedLLMProvider?.apiURL}
onChange={(e) => onLLMProviderChange({apiURL: e.target.value})}
/>
Expand Down

0 comments on commit c4db890

Please sign in to comment.