Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions webview-ui/src/components/settings/ApiOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,6 @@ const ApiOptions = ({
</>
)}

{selectedProvider === "fireworks" && (
<Fireworks apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} />
)}

{selectedProviderModels.length > 0 && (
<>
<div>
Expand Down Expand Up @@ -609,6 +605,10 @@ const ApiOptions = ({
</>
)}

{selectedProvider === "fireworks" && (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a comment here explaining why the Fireworks component needs to be rendered after the model dropdown section. This would help prevent someone from accidentally moving it back in the future:

<Fireworks apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this placement intentional? I notice most other provider-specific components are rendered before the model dropdown section, but placing Fireworks after actually makes sense since users need to see available models before entering their API key. Just wanted to confirm this was a deliberate design choice.

)}

<ThinkingBudget
key={`${selectedProvider}-${selectedModelId}`}
apiConfiguration={apiConfiguration}
Expand Down
Loading