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.27
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.28
Choose a head ref
  • 18 commits
  • 31 files changed
  • 11 contributors

Commits on Mar 4, 2025

  1. Configuration menu
    Copy the full SHA
    bfd2a66 View commit details
    Browse the repository at this point in the history
  2. Update OpenAPI to version generated from ref bfd2a66 (#1211)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Mar 4, 2025
    Configuration menu
    Copy the full SHA
    417c3ea View commit details
    Browse the repository at this point in the history
  3. Strip attachments from copilot messages when handling the CLI commands (

    #1202)
    
    Copilot sends files in the context in the following format:
    ```
    <attachment>
    file
    <attachment>
    user query
    ```
    
    Fixes: #1061
    jhrozek authored Mar 4, 2025
    Configuration menu
    Copy the full SHA
    08c0111 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2025

  1. Bump alembic from 1.14.1 to 1.15.1 (#1217)

    Bumps [alembic](https://github.com/sqlalchemy/alembic) from 1.14.1 to 1.15.1.
    - [Release notes](https://github.com/sqlalchemy/alembic/releases)
    - [Changelog](https://github.com/sqlalchemy/alembic/blob/main/CHANGES)
    - [Commits](https://github.com/sqlalchemy/alembic/commits)
    
    ---
    updated-dependencies:
    - dependency-name: alembic
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 5, 2025
    Configuration menu
    Copy the full SHA
    fa6853a View commit details
    Browse the repository at this point in the history
  2. Run make all to reformat code automatically (#1215)

    I don't know why our lint CI step doesn't catch this (it did slap me the
    other day for other reasons, so it is working), but running `make all`
    produced a bunch of reformats.
    jhrozek authored Mar 5, 2025
    Configuration menu
    Copy the full SHA
    ce37fa4 View commit details
    Browse the repository at this point in the history
  3. Workaround for system messages that contain a list of dicts (#1214)

    In the litellm `ChatCompletionMessage` that we use a system message is
    defined as follows:
    ```
    class OpenAIChatCompletionSystemMessage(TypedDict, total=False):
        role: Required[Literal["system"]]
        content: Required[Union[str, List]]
        name: str
    ```
    
    So content can either be a string or a list. Our secret encryption code only
    handled the string case. Since both cases will properly be handled by the
    soon-to-be-coming rewrite, let's just add a workaround so that e.g. Cline with
    Anthropic keeps working.
    
    With the no-more-litellm branch, everything works as expected.
    
    Fixes: #1207
    jhrozek authored Mar 5, 2025
    Configuration menu
    Copy the full SHA
    599d8f6 View commit details
    Browse the repository at this point in the history
  4. feat: initial work on endpoints for creating/updating workspace config (

    #1107)
    
    * feat: initial work on endpoints for creating/updating
    
    * fix: return newly created `FullWorkspace` from POST /api/v1/workspaces
    
    * formatting
    
    * test: create workspace with config happy path
    
    * 1 db per test
    
    * test: basic happy path test for create/update workspace config
    
    * fix failing test
    
    * chore: fmt pass
    
    * fix: internal server error when no config passed
    
    * tidy up
    
    * test: more integration tests
    
    * chore: tidy ups
    
    * chore: revert openapi changes
    
    * lint fixes
    
    * remove manual rollbacks, ensure re-raising all exceptions
    alex-mcgovern authored Mar 5, 2025
    Configuration menu
    Copy the full SHA
    f310e46 View commit details
    Browse the repository at this point in the history
  5. Update OpenAPI to version generated from ref f310e46 (#1224)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Mar 5, 2025
    Configuration menu
    Copy the full SHA
    81f0389 View commit details
    Browse the repository at this point in the history
  6. Validate persona description is sufficiently different (#1225)

    Closes: #1218
    
    Check if the description for a new persona is different enough from
    the existing personas descriptions. This is done to correctly
    differentiate between personas
    aponcedeleonch authored Mar 5, 2025
    Configuration menu
    Copy the full SHA
    da69ec0 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2025

  1. Created necessary methods for Persona CRUD (#1232)

    * Created necessary methods for Persona CRUD
    
    Closes: #1219
    
    Some changes in this PR
    - Renamed Semantic Router to PersonaManager: The motivation
    is that the only semantic routing we're doing is based on persona.
    So lets just call it that wat
    - Created update and delete methods for Persona
    - Added tests for the whole Persona CRUD
    
    * linting issues
    aponcedeleonch authored Mar 6, 2025
    Configuration menu
    Copy the full SHA
    258fc98 View commit details
    Browse the repository at this point in the history
  2. Update OpenAPI to version generated from ref 258fc98 (#1236)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Mar 6, 2025
    Configuration menu
    Copy the full SHA
    a093f7b View commit details
    Browse the repository at this point in the history
  3. Bump litellm from 1.62.1 to 1.63.0 (#1235)

    Bumps [litellm](https://github.com/BerriAI/litellm) from 1.62.1 to 1.63.0.
    - [Release notes](https://github.com/BerriAI/litellm/releases)
    - [Commits](https://github.com/BerriAI/litellm/commits)
    
    ---
    updated-dependencies:
    - dependency-name: litellm
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 6, 2025
    Configuration menu
    Copy the full SHA
    e763971 View commit details
    Browse the repository at this point in the history
  4. Some fixes on Persona CRUD (#1241)

    - Make all the API requests interface with PersonaManager class
    - Add get personas in PersonaManager class
    - Validate personas names
    aponcedeleonch authored Mar 6, 2025
    Configuration menu
    Copy the full SHA
    39ea5bf View commit details
    Browse the repository at this point in the history
  5. Add instance table along with init code. (#1234)

    This change adds an `instance` table containing the minimum set of
    details about codegate. We might want to add more details in the
    future.
    
    The table must contain only a single record at any time. To guarantee
    that, a trigger is added that prevents inserts beyond the first
    record.
    
    Finally, code performing the initialization is added to the `serve`
    command.
    blkt authored Mar 6, 2025
    Configuration menu
    Copy the full SHA
    fd757dd View commit details
    Browse the repository at this point in the history
  6. Add developer documentation for workspaces (#1237)

    * Add developer documentation for workspaces
    
    This is meant to help developers decide when to use workspaces to
    namespace resources and when not to.
    
    Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
    
    * Update docs/workspaces.md
    
    Co-authored-by: Alex McGovern <58784948+alex-mcgovern@users.noreply.github.com>
    
    * Add guidance on exporting
    
    Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
    
    ---------
    
    Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
    Co-authored-by: Alex McGovern <58784948+alex-mcgovern@users.noreply.github.com>
    JAORMX and alex-mcgovern authored Mar 6, 2025
    Configuration menu
    Copy the full SHA
    3a75004 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    96aa48d View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2025

  1. Configuration menu
    Copy the full SHA
    43de72a View commit details
    Browse the repository at this point in the history
  2. Bump jinja2 from 3.1.5 to 3.1.6 (#1249)

    Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.5 to 3.1.6.
    - [Release notes](https://github.com/pallets/jinja/releases)
    - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
    - [Commits](pallets/jinja@3.1.5...3.1.6)
    
    ---
    updated-dependencies:
    - dependency-name: jinja2
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 7, 2025
    Configuration menu
    Copy the full SHA
    f9b9bca View commit details
    Browse the repository at this point in the history
Loading