-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: enable model selection dropdown for Fireworks AI provider #6755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -558,10 +558,6 @@ const ApiOptions = ({ | |
| </> | ||
| )} | ||
|
|
||
| {selectedProvider === "fireworks" && ( | ||
| <Fireworks apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| )} | ||
|
|
||
| {selectedProviderModels.length > 0 && ( | ||
| <> | ||
| <div> | ||
|
|
@@ -609,6 +605,10 @@ const ApiOptions = ({ | |
| </> | ||
| )} | ||
|
|
||
| {selectedProvider === "fireworks" && ( | ||
| <Fireworks apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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} | ||
|
|
||
There was a problem hiding this comment.
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: