Skip to content

Conversation

@jroth1111
Copy link

@jroth1111 jroth1111 commented Dec 22, 2025

Summary

  • add an operations guide covering auth storage and deploy considerations
  • document operational enhancements in the README
  • expand config.example.yaml with auth storage, security, and limits settings

Motivation

  • give operators a single place for production guidance on new features
  • align docs/examples with current security and routing capabilities

Testing

  • not run (docs changes)

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @jroth1111, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the operational robustness and configurability of the proxy by introducing detailed documentation for its advanced features and updating the example configuration to reflect these capabilities. The changes aim to provide users with better control over security, performance, and reliability in production environments, covering aspects from secret management and encrypted storage to intelligent routing and comprehensive monitoring.

Highlights

  • New Operations Guide: A comprehensive operations.md document has been added, detailing security, observability, and advanced operational patterns for the proxy.
  • README Updates: The README.md now includes a dedicated section on 'Operational Enhancements' and 'Health-Based Routing & Smart Load Balancing', providing a high-level overview of new features.
  • Expanded Configuration Options: The config.example.yaml has been significantly updated to include new settings for auth storage encryption, security guardrails, request/response limits, caching, rate limiting, Prometheus metrics, advanced routing strategies, fallback chains, retry policies, virtual keys, pricing, and health checks.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces extensive documentation for new operational features, including a detailed operations guide, updates to the README, and expanded example configurations. The new documentation is well-structured and comprehensive. My review includes one suggestion to improve the clarity of the routing configuration documentation in docs/operations.md. Consolidating fragmented examples into a single block will help prevent user confusion and align the documentation with the example provided in config.example.yaml.

Comment on lines 200 to 229
```yaml
routing:
strategy: "fill-first" # default; or "round-robin", "random"
```

Additional strategies:
- `least-busy` (uses in-flight request counts)
- `lowest-latency` (requires `health-tracking.enable: true`)

### Fill-first spillover (recommended for “many creds”)

`fill-first` intentionally “burns” one account first (to stagger rolling-window subscription caps), but with many concurrent terminals it can also overload a single credential, leading to avoidable `429` errors. These knobs keep the intent while adding safe spillover:

```yaml
routing:
strategy: "fill-first"
fill-first-max-inflight-per-auth: 4 # 0 = unlimited
fill-first-spillover: "next-auth" # next-auth (default), least-busy
```

- When the preferred credential is at capacity (`max-inflight`), selection spills over to another credential instead of overloading one.
- `next-auth` preserves deterministic “drain first”; `least-busy` maximizes throughput under bursty load.

Health-aware filtering (requires `health-tracking.enable: true`):

```yaml
routing:
health-aware: true
prefer-healthy: true
```
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The documentation for the routing configuration is split across three separate YAML examples. This fragmentation can be confusing for users, as it might suggest that routing should be declared multiple times, which is invalid in YAML. To improve clarity and prevent misconfiguration, it's better to consolidate all related options into a single, comprehensive example. This helps users understand how different routing settings interact with each other.

Here is a suggested combined example:

routing:
  strategy: "fill-first"    # fill-first (default), round-robin, random, least-busy, lowest-latency
  health-aware: true        # Filter unhealthy credentials (COOLDOWN, ERROR)
  prefer-healthy: true      # Prefer HEALTHY over DEGRADED when health-aware
  
  # Specific to "fill-first" strategy
  fill-first-max-inflight-per-auth: 4  # Default: 4. 0 = unlimited
  fill-first-spillover: "next-auth"   # next-auth (default), least-busy

@luispater
Copy link
Collaborator

Please keep configuration changes for different PRs separate rather than merging them into a single PR.

@luispater luispater closed this Dec 22, 2025
@jroth1111
Copy link
Author

Rebased on upstream/main; removed config.example.yaml changes to keep config updates separate and kept docs-only changes (routing example consolidated). @luispater would you mind re-reviewing?

@jroth1111
Copy link
Author

Cleaned up docs-only scope: consolidated routing examples into a single block in docs/operations.md and rebased onto current main so config.example.yaml stays untouched. Ready for re-review. @luispater

@jroth1111
Copy link
Author

Opening replacement PR #676 because #665 diff stayed pinned to the old head SHA. #676 is docs-only (README/docs), consolidates the routing example in operations guide, and removes the duplicate block from the 10-terminals section. No config.example.yaml changes. Please review #676 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants