-
Notifications
You must be signed in to change notification settings - Fork 96
Add multi-model support with configuration system #3087
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
Open
stbenjam
wants to merge
5
commits into
openshift:main
Choose a base branch
from
stbenjam:claude
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f75e9d0
Add multi-model support with configuration system
stbenjam e6fd883
Address CodeRabbitAI review feedback
stbenjam 186592f
Merge remote-tracking branch 'upstream/main' into claude
stbenjam 80fe8b4
Add Gemini 3
stbenjam 7dbf01a
Bump requirements + fix gemini thinking
stbenjam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,92 @@ | ||
| # LLM Configuration | ||
| # For local Ollama (default) | ||
| # I have found that llama3.1:8b and granite3.3:8b give the best results, | ||
| # with a slight edge to granite. | ||
| LLM_ENDPOINT=http://localhost:11434/v1 | ||
| MODEL_NAME=granite3.3:8b | ||
|
|
||
| # For OpenAI | ||
| # Sippy AI Agent Configuration | ||
| # Copy this file to .env and configure for your setup | ||
|
|
||
| # ============================================================================= | ||
| # Model Configuration - Choose ONE of the following setups: | ||
| # ============================================================================= | ||
|
|
||
| # ----------------------------------------------------------------------------- | ||
| # Option 1: Local Ollama | ||
| # ----------------------------------------------------------------------------- | ||
| # LLM_ENDPOINT=http://localhost:11434/v1 | ||
| # MODEL_NAME=llama3.1:8b | ||
|
|
||
| # Other popular Ollama models: | ||
| # MODEL_NAME=llama3.2:latest | ||
| # MODEL_NAME=mistral:latest | ||
|
|
||
| # ----------------------------------------------------------------------------- | ||
| # Option 2: OpenAI | ||
| # ----------------------------------------------------------------------------- | ||
| # LLM_ENDPOINT=https://api.openai.com/v1 | ||
| # MODEL_NAME=gpt-4 | ||
| # OPENAI_API_KEY=your_openai_api_key_here | ||
| # MODEL_NAME=gpt-4o | ||
| # OPENAI_API_KEY=sk-your-openai-api-key-here | ||
|
|
||
| # For Google Gemini | ||
| # Other OpenAI models: | ||
| # MODEL_NAME=gpt-4o-mini | ||
| # MODEL_NAME=gpt-4-turbo | ||
| # MODEL_NAME=gpt-3.5-turbo | ||
|
|
||
| # ----------------------------------------------------------------------------- | ||
| # Option 3: Google Gemini via AI Studio API | ||
| # ----------------------------------------------------------------------------- | ||
| # MODEL_NAME=gemini-1.5-pro | ||
| # GOOGLE_API_KEY=your-google-api-key-here | ||
|
|
||
| # OR use service account credentials: | ||
| # MODEL_NAME=gemini-2.5-flash | ||
| # GOOGLE_API_KEY=your_google_api_key_here | ||
| # or GOOGLE_APPLICATION_CREDENTIALS=path_to_json_credentials | ||
| # GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json | ||
|
|
||
| # ----------------------------------------------------------------------------- | ||
| # Option 4: Claude via Google Vertex AI (Recommended for Claude) | ||
| # ----------------------------------------------------------------------------- | ||
| # Using gcloud auth (recommended for local development): | ||
| # MODEL_NAME=claude-sonnet-4-5 | ||
| # GOOGLE_PROJECT_ID=your-gcp-project-id | ||
| # GOOGLE_LOCATION=us-central1 | ||
|
|
||
| # Sippy API Configuration (for future use) | ||
| SIPPY_API_URL=https://sippy.dptools.openshift.org | ||
| # OR using service account credentials: | ||
| # MODEL_NAME=claude-sonnet-4-5 | ||
| # GOOGLE_PROJECT_ID=your-gcp-project-id | ||
| # GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json | ||
| # GOOGLE_LOCATION=us-central1 | ||
|
|
||
| # Sippy database connection for accessing data | ||
| #SIPPY_READ_ONLY_DATABASE_DSN=postgresql://readonly_user:password@host:5432/sippy | ||
| # ============================================================================= | ||
| # Model Parameters | ||
| # ============================================================================= | ||
| TEMPERATURE=0.0 | ||
|
|
||
| # Jira Configuration (for known incident tracking) | ||
| # Token budget for Claude's extended thinking feature (only used when --thinking is enabled) | ||
| # EXTENDED_THINKING_BUDGET=10000 | ||
|
|
||
| # ============================================================================= | ||
| # Sippy Configuration | ||
| # ============================================================================= | ||
| # Sippy API URL (required for most tools to work) | ||
| SIPPY_API_URL=https://sippy.dptools.openshift.org/api | ||
|
|
||
| # Optional: Database access for advanced SQL queries (use read-only user!) | ||
| # SIPPY_READ_ONLY_DATABASE_DSN=postgresql://readonly_user:password@host:5432/sippy | ||
|
|
||
| # ============================================================================= | ||
| # Jira Configuration (Optional - for incident tracking) | ||
| # ============================================================================= | ||
| JIRA_URL=https://issues.redhat.com | ||
|
|
||
| # Specify the MCP configuration to use. | ||
| MCP_CONFIG_FILE=mcp_config.json | ||
| # ============================================================================= | ||
| # Agent Behavior | ||
| # ============================================================================= | ||
| # Maximum number of tool call iterations before stopping | ||
| MAX_ITERATIONS=15 | ||
|
|
||
| # Maximum execution time in seconds (default: 300 = 5 minutes) | ||
| MAX_EXECUTION_TIME=300 | ||
|
|
||
| # AI Persona (default, zorp, etc.) | ||
| PERSONA=default | ||
|
|
||
| # ============================================================================= | ||
| # MCP (Model Context Protocol) Integration (Optional) | ||
| # ============================================================================= | ||
| # Path to MCP servers configuration file | ||
| # MCP_CONFIG_FILE=mcp_config.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,3 +139,7 @@ dmypy.json | |
| .DS_Store | ||
| Thumbs.db | ||
| mcp_config.json | ||
|
|
||
|
|
||
| # Configuration for chat app | ||
| models.yaml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Models Configuration for Sippy Chat | ||
| # | ||
| # This file defines the available AI models that users can select from in the chat interface. | ||
| # Users can switch between models mid-conversation via the Settings page. | ||
| # | ||
| # Configuration options per model: | ||
| # id: Unique identifier for the model (required) | ||
| # name: Display name shown in the UI (required) | ||
| # description: Brief description shown in the UI (optional) | ||
| # model_name: The actual model name to use with the provider (required) | ||
| # endpoint: API endpoint URL (required for OpenAI-compatible APIs, empty for Vertex AI) | ||
| # temperature: Temperature setting for the model (optional, default: 0.0) | ||
| # extended_thinking_budget: Token budget for Claude's extended thinking (optional, default: 0) | ||
| # default: Set to true to make this the default model (optional, only one should be true) | ||
|
|
||
| models: | ||
| # Google Gemini | ||
| - id: "gemini-2.5-flash" | ||
| name: "Gemini 2.5 Flash" | ||
| description: "Google's Gemini 2.5 Flash - best cost/performance" | ||
| model_name: "gemini-2.5-flash" | ||
| default: true | ||
|
|
||
| - id: "gemini-2.5-pro" | ||
| name: "Gemini 2.5 Pro" | ||
| description: "Google's Gemini 2.5 Pro with large context window" | ||
| model_name: "gemini-2.5-pro" | ||
|
|
||
| - id: "gemini-3-pro-preview" | ||
| name: "Gemini 3.0 Pro Preview" | ||
| description: "Preview of Google's Next Pro Model" | ||
| model_name: "gemini-3-pro-preview" | ||
|
|
||
| # Claude via Google Vertex AI | ||
| - id: "claude-sonnet-4.5" | ||
| name: "Claude Sonnet 4.5" | ||
| description: "Capable model for complex CI analysis" | ||
| model_name: "claude-sonnet-4-5@20250929" | ||
|
|
||
| # Claude via Google Vertex AI | ||
| - id: "claude-sonnet-4.5-thinking" | ||
| name: "Claude Sonnet 4.5 (Thinking)" | ||
| description: "Capable model for complex CI analysis with extended thinking" | ||
| model_name: "claude-sonnet-4-5@20250929" | ||
| temperature: 1.0 # Required when setting thinking budget | ||
| extended_thinking_budget: 10000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.