Skip to content

feat: add Flask microservice example#27

Open
MarceloAdan73 wants to merge 1 commit into
SantanderAI:mainfrom
MarceloAdan73:feat/flask-example
Open

feat: add Flask microservice example#27
MarceloAdan73 wants to merge 1 commit into
SantanderAI:mainfrom
MarceloAdan73:feat/flask-example

Conversation

@MarceloAdan73

Copy link
Copy Markdown

Description

Adds examples/flask_microservice.py — a multi-provider LLM API built with
Flask and llm_bridge. Includes:

  • POST /chat — generic multi-provider chat (mock, callable, openai)
  • POST /summarize — structured summarisation with prompt engineering
  • GET /health — readiness check
  • Callable provider — local text analyser (word count, language detection,
    reading time) with zero network dependencies

This is the first example showing llm_bridge integrated in a web framework,
demonstrating real-world patterns like per-request provider selection and
structured prompt templates.

Checklist

  • ruff check . and black --check . pass
  • No secrets, API keys, internal URLs, or proprietary content are included
    Luego clic en Create pull request.

@MarceloAdan73 MarceloAdan73 requested review from a team as code owners July 5, 2026 01:57
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@MarceloAdan73

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jul 5, 2026
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