Skip to content

V1/development#6

Merged
Aytsuu merged 14 commits into
mainfrom
v1/development
May 27, 2026
Merged

V1/development#6
Aytsuu merged 14 commits into
mainfrom
v1/development

Conversation

@Aytsuu

@Aytsuu Aytsuu commented May 27, 2026

Copy link
Copy Markdown
Owner

This pull request introduces several key improvements to the AI gateway service, focusing on configuration, developer tooling, code organization, and new API features. The changes include enhanced configuration options, improved developer experience with new setup scripts and Makefile commands, a refactored and modularized FastAPI backend, and the addition of vision model support.

Backend and API Improvements:

  • Refactored the FastAPI backend for better modularity and maintainability, moving route handlers into dedicated router modules (chat.py, vision.py), and cleaning up the main application setup. The API endpoints now use dependency injection for configuration and API key verification. (ai_engine/gateway/src/main.py, ai_engine/gateway/src/routers/chat.py, ai_engine/gateway/src/dependencies.py, [1] [2] [3]
  • Introduced new models and request schemas to support both chat and vision (multimodal) requests, preparing the backend for vision capabilities. (ai_engine/gateway/src/models.py, [1] [2]

Configuration and Environment:

  • Expanded and clarified configuration options in config.py, including new fields for fallback and vision models, Google AI Studio integration, and improved environment variable handling. (ai_engine/gateway/src/config.py, [1] [2]
  • Added more detailed and explicit configuration options for Codex, such as model verbosity and reasoning summary. (.codex/config.toml, .codex/config.tomlR16-R17)

Developer Tooling and Setup:

  • Added comprehensive setup scripts for both Windows (setup.ps1) and Linux/macOS (setup.sh) to automate virtual environment creation and dependency installation. (ai_engine/gateway/scripts/setup.ps1, [1]; ai_engine/gateway/scripts/setup.sh, [2]
  • Enhanced the Makefile with commands for testing, building, running experiments, and managing models with Ollama. (ai_engine/Makefile, ai_engine/MakefileR1-R29)
  • Updated requirements to include testing dependencies (pytest, pytest-asyncio). (ai_engine/gateway/requirements.txt, ai_engine/gateway/requirements.txtR5-R6)

Containerization and Documentation:

  • Changed the default exposed port for the AI gateway from 8000 to 8001 in both Docker Compose and documentation, to avoid conflicts and clarify usage. (ai_engine/docker-compose.yml, [1]; ai_engine/README.md, [2]
  • Updated the Dockerfile to include all necessary files for development and testing, such as pyproject.toml, tests, and scripts directories. (ai_engine/gateway/Dockerfile, ai_engine/gateway/DockerfileR8-R11)

Configuration cleanup:

  • Removed unused Mapbox MCP server configuration from .codex/config.toml.

These changes collectively improve the flexibility, maintainability, and developer experience of the AI gateway, while laying the groundwork for advanced features such as multimodal (vision) model support.

Aytsuu added 14 commits May 25, 2026 01:05
- Added cursor pointer styles to buttons in Globe, ListingCard, RequestCard, ReleaseNotificationProvider, BottomNav, NavigationRail, Account, AdminReleases, Appearance, Billing, MyProfileStats, Notifications, and SDG components for improved user experience.
- Implemented interactive details modal in MyProfileStats for displaying user statistics with enhanced accessibility and animations.
- Updated button styles to ensure consistent hover and active states across various components.
- Updated Makefile to include commands for testing, building, and running experiments using Docker.
- Modified README to reflect changes in API endpoint port from 8000 to 8001.
- Adjusted docker-compose.yml to expose the gateway on port 8001.
- Enhanced Dockerfile to copy necessary scripts and test files into the container.
- Added pytest and pytest-asyncio to requirements for testing.
- Introduced new images for experiments in the scripts/data directory.
- Implemented run_experiment.py for testing gateway endpoints with configurable layers.
- Updated config.py to include new settings for Google AI Studio API.
- Enhanced dependencies.py and main.py with logging and configuration management.
- Improved vision.py to handle image processing and integrate with Google AI Studio.
- Refactored service.py to orchestrate requests to the upstream model service with error handling.
- Added utility functions in image.py for image encoding.
- Expanded tests in test_gateway.py to cover new vision API functionality and error handling.
… link, and create rewards store page

- Deleted `antigravity-sessions.md` and `codex-sessions.md` as they are no longer needed.
- Updated `ImpactAnalyticsPage` to include a link to the new rewards store with a Gift icon.
- Introduced a new `RewardsStorePage` component with a comprehensive rewards system, including user points tracking, daily check-in bonuses, and redemption functionality.
- Added a new rewards category in the navigation rail for easy access to the rewards store.
- Modified Next.js configuration to update allowed development origins and adjust API rewrites for better routing.
… and add logging for finish reason in service
…ction API

- Cleaned up ProfilePage component by removing unused imports and functions.
- Removed MyProfileStats component from ProfilePage and adjusted related logic.
- Introduced new API route for AI-based listing detection with validation and error handling.
- Updated RequestCard to display preferred maximum distance.
- Enhanced BottomNav and NavigationRail to include profile and chat notifications.
- Added functionality for canceling listing claims and request fulfillments in the API client.
- Updated data models and mappers to accommodate new request and listing structures.
- Introduced new utility functions for AI listing detection and improved category handling.
- Added support for chat images in the storage module.
…andling

- Added new city coordinates for various locations in the Philippines to CITY_COORDS.
- Introduced requesterId to GlobePin interface for better request tracking.
- Updated Globe component to handle latitude and longitude for listings and requests.
- Implemented logic to differentiate between listing owners and request owners.
- Added a new API client method to fetch personalized matches.
- Extended API types and mappers to support personalized matches functionality.
Copilot AI review requested due to automatic review settings May 27, 2026 18:48
@Aytsuu
Aytsuu merged commit 797c496 into main May 27, 2026
1 check passed
@Aytsuu
Aytsuu removed the request for review from Copilot May 27, 2026 19:17
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.

1 participant