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:
Ryan Ward
2026-06-17 14:14:40 -05:00
parent 59cfd0e2f5
commit 5ea378a38d
32 changed files with 2442 additions and 137 deletions
+4
View File
@@ -29,10 +29,14 @@ pub(crate) mod get_relevant_files;
pub(crate) mod harness_display;
pub(crate) mod llms;
pub mod onboarding;
#[cfg(not(target_family = "wasm"))]
pub mod openai;
pub(crate) mod persisted_workspace;
pub(crate) mod predict;
#[allow(dead_code)]
pub mod prompt_builder;
#[cfg(not(target_family = "wasm"))]
pub mod provider;
pub mod request_usage_model;
pub(crate) mod restored_conversations;
pub(crate) mod skills;