Add OpenAI/LiteLLM provider support with settings UI
- Add openai/ provider module with translator, client, convert, request/response translators - Add shared provider/ types (ConversationMessage, MessageRole, ProviderConfig enum) - Wire OpenAI-compatible provider dispatch alongside Bedrock in response_stream.rs - Add ai.openai.* settings (enabled, base_url, api_key, model, models) - Add OpenAI/LiteLLM settings page with model fetch, picker, and config UI - Extend model menu items and llms.rs to surface LiteLLM models - Update WARP.md with OpenAI provider architecture docs
This commit is contained in:
@@ -31,9 +31,7 @@ use crate::{
|
||||
model_menu_items::{available_model_menu_items, has_reasoning_variants, is_auto},
|
||||
profiles::{AIExecutionProfilesModel, AIExecutionProfilesModelEvent, ClientProfileId},
|
||||
},
|
||||
llms::{
|
||||
dedupe_model_display_names, LLMId, LLMInfo, LLMPreferences, LLMPreferencesEvent,
|
||||
},
|
||||
llms::{dedupe_model_display_names, LLMId, LLMInfo, LLMPreferences, LLMPreferencesEvent},
|
||||
},
|
||||
appearance::Appearance,
|
||||
cloud_object::model::generic_string_model::StringModel,
|
||||
@@ -1476,7 +1474,6 @@ impl ProfileModelSelector {
|
||||
container.finish()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl TypedActionView for ProfileModelSelector {
|
||||
@@ -1614,7 +1611,6 @@ impl View for ProfileModelSelector {
|
||||
let model_menu = ChildView::new(&self.model_dropdown).finish();
|
||||
let positioning = self.get_menu_positioning(app, false);
|
||||
stack.add_positioned_overlay_child(model_menu, positioning);
|
||||
|
||||
}
|
||||
|
||||
let is_udi_enabled =
|
||||
|
||||
Reference in New Issue
Block a user