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

Fixup minor string inconsistencies #397

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ body:
attributes:
label: "IDE and Version"
description: "Enter the IDE name and version."
placeholder: "e.g., VSCode 1.78.0"
placeholder: "e.g., VS Code 1.78.0"
validations:
required: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
labels: |
org.opencontainers.image.source=${{ github.repositoryUrl }}
org.opencontainers.image.description="Container image for the Codegate Local Gateway"
org.opencontainers.image.title="Codegate Container Image"
org.opencontainers.image.description="Container image for the CodeGate local gateway"
org.opencontainers.image.title="CodeGate container image"
org.opencontainers.image.vendor="Stacklok Inc."
org.opencontainers.image.version=${{ github.sha }}
flavor: |
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ htmlcov/
# Weaviate
weaviate_data/

# Codegate Dashboard DB
# CodeGate Dashboard DB
codegate.db

# certificate directory
Expand Down
10 changes: 5 additions & 5 deletions cert_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ def generate_certificates(cert_dir="certs"):
print("\nTo trust these certificates:")
print("\nOn macOS:")
print(
"sudo security add-trusted-cert -d -r trustRoot "
"-k /Library/Keychains/System.keychain certs/server.crt"
"security add-trusted-cert -r trustRoot "
"-k ~/Library/Keychains/login.keychain certs/server.crt"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this script is used anymore..this is confusing and we need to clean that up, but for now the only instructions are in the UI and the docs. It's not wrong to fix instructions that are not used :-) so let's merge the PR and remove this script later on

(the certs are these days minted in codegate_ca.py)

)
print("\nOn Windows (PowerShell as Admin):")
print("\nOn Windows (PowerShell):")
print(
'Import-Certificate -FilePath "certs\\server.crt" '
"-CertStoreLocation Cert:\\LocalMachine\\Root"
"-CertStoreLocation Cert:\\CurrentUser\\Root"
)
print("\nOn Linux:")
print("sudo cp certs/server.crt /usr/local/share/ca-certificates/proxy-pilot.crt")
print("sudo update-ca-certificates")
print("\nFor VSCode, add to settings.json:")
print("\nFor VS Code, add to settings.json:")
print(
"""{
"http.proxy": "https://localhost:8989",
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Codegate Example Configuration
# CodeGate Example Configuration

# Network settings
port: 8989 # Port to listen on (1-65535)
Expand Down
2 changes: 1 addition & 1 deletion config.yaml.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Codegate Example Configuration
# CodeGate Example Configuration

# Network settings
port: 8989 # Port to listen on (1-65535)
Expand Down
2 changes: 1 addition & 1 deletion src/codegate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Codegate - A Generative AI security gateway."""
"""CodeGate - A Generative AI security gateway."""

import logging as python_logging
from importlib import metadata
Expand Down
2 changes: 1 addition & 1 deletion src/codegate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def validate_port(ctx: click.Context, param: click.Parameter, value: int) -> int
@click.group()
@click.version_option()
def cli() -> None:
"""Codegate - A configurable service gateway."""
"""CodeGate - A configurable service gateway."""
pass


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async def process(
if len(searched_objects) > 0:
context_str = self.generate_context_str(searched_objects, context)
else:
context_str = "Codegate did not find any malicious or archived packages."
context_str = "CodeGate did not find any malicious or archived packages."

last_user_idx = self.get_last_user_message_idx(request)
if last_user_idx == -1:
Expand Down
2 changes: 1 addition & 1 deletion src/codegate/pipeline/version/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def process(
return PipelineResult(
response=PipelineResponse(
step_name=self.name,
content="Codegate version: {}".format(__version__),
content="CodeGate version: {}".format(__version__),
model=request["model"],
),
context=context,
Expand Down
Loading