Skip to main content

base.py

Source: sunholo/agents/fastapi/base.py

Functions

create_fastapi_app(origins=[''], origin_regex='https://(.\.)?sunholo\.com')

Creates and configures a FastAPI app for GenAI with Socket.IO integration.

Args: image_qna_stream_fn: Streaming Q&A function (likely from gemini.genai) image_qna_fn: Non-streaming Q&A function (likely from gemini.genai)

Returns: FastAPI: The configured FastAPI app instance.

Sunholo Multivac

Get in touch to see if we can help with your GenAI project.

Contact us

Other Links

Sunholo Multivac - GenAIOps

Copyright ©

Holosun ApS 2024