Skip to content

feat: implement openai-compatible fallback for cloud mode#65

Open
memreo wants to merge 2 commits into
mainfrom
feat/NO-ID/openai-fallback
Open

feat: implement openai-compatible fallback for cloud mode#65
memreo wants to merge 2 commits into
mainfrom
feat/NO-ID/openai-fallback

Conversation

@memreo

@memreo memreo commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR implements an OpenAI-compatible failover fallback for the GenAI py-intelligence service. If the primary cloud model (Gemini) fails during analysis, the system catches the exception and falls back to querying the custom "Logos" API gateway. The base API URL and key are configurable via environment variables (OPENAI_BASE_URL and OPENAI_API_KEY), which have been added to the project's local .env and Github Actions secrets.

Component

  • Client: client/
  • API contract: api/
  • Spring ingestion: services/spring-ingestion/
  • Spring logbook: services/spring-logbook/
  • Spring alerts: services/spring-alerts/
  • GenAI: services/py-intelligence/
  • Infrastructure: infra/
  • CI/CD: .github/workflows/
  • Documentation

API Impact

  • This changes the API.
  • api/openapi.yaml was updated.
  • This does not change the API.

Testing

  • I tested this locally.
  • I added or updated tests.
  • Tests are not applicable for this change.

Checklist

  • Branch name follows (feat|fix)/(issue_id)/(name_of_issue).
  • The change is limited to the intended component(s).
  • Documentation was updated if needed.

Related Issue

Closes #

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