Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stacklok/codegate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.7
Choose a base ref
...
head repository: stacklok/codegate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.8
Choose a head ref
  • 20 commits
  • 21 files changed
  • 5 contributors

Commits on Jan 13, 2025

  1. Log User-agents from clients

    Had this branch hanging around and after chat with Jakub we
    figured its worth having for when we need to figure out
    client providers
    lukehinds committed Jan 13, 2025
    Configuration menu
    Copy the full SHA
    40e5e28 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2025

  1. Bump ollama from 0.4.5 to 0.4.6

    Bumps [ollama](https://github.com/ollama/ollama-python) from 0.4.5 to 0.4.6.
    - [Release notes](https://github.com/ollama/ollama-python/releases)
    - [Commits](ollama/ollama-python@v0.4.5...v0.4.6)
    
    ---
    updated-dependencies:
    - dependency-name: ollama
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    c06e870 View commit details
    Browse the repository at this point in the history
  2. Bump litellm from 1.57.10 to 1.58.0

    Bumps [litellm](https://github.com/BerriAI/litellm) from 1.57.10 to 1.58.0.
    - [Release notes](https://github.com/BerriAI/litellm/releases)
    - [Commits](BerriAI/litellm@v1.57.10...v1.58.0)
    
    ---
    updated-dependencies:
    - dependency-name: litellm
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    d06f04c View commit details
    Browse the repository at this point in the history
  3. Add build-arg in make image-build command

    The build-arg prevents that the step for downloading the UI code is cached.
    This way we can ensure that we are always using the latest releasee from
    the UI when building the image locally. The build-arg is already present
    in the GH action to build and publish the image.
    
    Additionally, remove the `secret` provided to the GH action to build the
    image. It was used when the containers were not public
    aponcedeleonch committed Jan 14, 2025
    Configuration menu
    Copy the full SHA
    0791950 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #578 from stacklok/update-img-build-cmd

    Add build-arg in `make image-build` command
    aponcedeleonch authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    c00dc18 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #567 from stacklok/uagent

    Log User-agents from clients
    lukehinds authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    de6ab5f View commit details
    Browse the repository at this point in the history
  6. Merge pull request #575 from stacklok/dependabot/pip/ollama-0.4.6

    Bump ollama from 0.4.5 to 0.4.6
    lukehinds authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    6e11207 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #576 from stacklok/dependabot/pip/litellm-1.58.0

    Bump litellm from 1.57.10 to 1.58.0
    lukehinds authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    38230d1 View commit details
    Browse the repository at this point in the history
  8. fix: Do not double count secrets on /explain copilot function

    Closes: #519
    
    When using `/explain` function in copilot we were double counting th secrets.
    The problem was that we were getting several `user` messages after the last
    `assistant` message. We are using the last `assistant` message as means to identify
    the user messages. Here is an example of how the request looked like for `/explain`:
    ```
    [
      {"role": "assistant", "content": "some content"},
      {"role": "user", "content": content_with_secrets},
      {"role": "user", "content": content_with_secrets},
    ]
    ```
    
    To avoid double counting now we check which was the secrets that matched after
    the last `assistant` message and only consider the unique ones.
    aponcedeleonch committed Jan 14, 2025
    Configuration menu
    Copy the full SHA
    20633f1 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #581 from stacklok/dedup-secrets-explain

    fix: Do not double count secrets on `/explain` copilot function
    aponcedeleonch authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    09e94df View commit details
    Browse the repository at this point in the history
  10. Fixed a couple typos. (#584)

    blkt authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    70fbc6e View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2025

  1. Add all-in-one minimal nginx config

    The nginx configuration uses a lot of defaults that work well in
    server-like environments. However, this is not optimized for a local
    dev-environment or single-container as codegate is meant to run.
    
    The nginx server spawns several processes which mostly remain idle. This
    is wasteful and it is taking over resources that could be used for
    something else. The intention of this new configuration is to minimize
    footprint.
    
    Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
    JAORMX committed Jan 15, 2025
    Configuration menu
    Copy the full SHA
    bcb26ab View commit details
    Browse the repository at this point in the history
  2. Use latest tag to build local codegate container

    There is no use in keeping this variable as it's only used for the
    container tag. Releases use another tagging mechanism.
    
    Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
    JAORMX committed Jan 15, 2025
    Configuration menu
    Copy the full SHA
    9434f78 View commit details
    Browse the repository at this point in the history
  3. Get version dynamically as opposed to the hardcoded one we have now

    This leverages the package metadata instead of overwriting it with a
    hardcoded version and description.
    
    Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
    JAORMX committed Jan 15, 2025
    Configuration menu
    Copy the full SHA
    a01e202 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #589 from JAORMX/minimal-nginx

    Add all-in-one minimal nginx config
    JAORMX authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    8d4aec8 View commit details
    Browse the repository at this point in the history
  5. feat: Introduce DB migrations

    Related: #583
    
    We had been using a single DB schema that didn't change until now.
    This introduces migrations using `alembic`. To create a new migration
    one can use:
    ```sh
    alembic revision -m "My migration"
    ```
    That should generate an empty migration file that needs to be hand-filled.
    Specifically the `upgrade` method which will be the one executed when
    running the migration.
    ```python
    """My migration
    
    Revision ID: <some_hash>
    Revises: <previous_hash>
    Create Date: YYYY-MM-DD HH:MM:SS.XXXXXX
    """
    from alembic import op
    import sqlalchemy as sa
    
    revision = '<some_hash>'
    down_revision = '<previous_hash>'
    branch_labels = None
    depends_on = None
    
    def upgrade():
        pass
    
    def downgrade():
        pass
    ```
    aponcedeleonch committed Jan 15, 2025
    Configuration menu
    Copy the full SHA
    dd482a2 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #592 from JAORMX/version-dynamic

    Get version dynamically as opposed to the hardcoded one we have now
    JAORMX authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    23d4a6f View commit details
    Browse the repository at this point in the history
  7. Merge pull request #590 from JAORMX/latest-tag

    Use `latest` tag to build local codegate container
    JAORMX authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    7022d28 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    34907a9 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #593 from stacklok/db-migrations

    feat: Introduce DB migrations
    aponcedeleonch authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    7593f72 View commit details
    Browse the repository at this point in the history
Loading