The GenericSuite AI for Python (backend version)
ISC License
Bot releases are visible (Hide)
Add: ".nvmrc" file to set the repo default node version.
Fix: typing in create_app() parameters.
Published by tomkat-cr 3 months ago
Add "langchain-google-community" due to a deprecation notice about GoogleSearchAPIWrapper [GS-66].
Add Langchain Tools description length validation, to avoid descriptions > 1024 chars.
Update dependecies "langchain" (from ^0.1.20 to ^0.2.3), "langchain-core", "langchain-openai" (from ^0.1.6 to ^0.1.8), "tiktoken" (from 0.6 to ^0.7.0) to be able to add "langchain-google-community" [GS-66].
Update env.example. to have the GS BE Core latest updates.
AWS_API_GATEWAY_STAGE env. var. removed from env.example.
All DEBUGs turned off to save logs/AWS Cloudwatch space.
Fix audio processing issues in FastAPI due to AWS API Gateway limitations, sending the base64 encoded files back [GS-95].
Change: minor linting changes.
Published by tomkat-cr 5 months ago
Add AI Endpoints and create_app for FastAPI [FA-246].
Add 'setup.cfg' and 'setup.py' to enable 'sam build' and 'sam local start-api' [GS-90].
Change 'OPENAI_VISION_MODEL' default value to 'gpt-4o'. Previously was 'gpt-4-vision-preview' [GS-78].
Remove the "dist" from the git repo.
Separate "messages_to_langchain_fmt_text" and "messages_to_langchain_fmt" so the latter always returns list [GS-78].
get_functions_dict() returns the exact function name when LanchChain Tools are required [GS-78].
Image generator save_image() returns "public_url" instead of "attachment_url", to be aligned to AWS save_file_from_url().
Add "sendfile_callable" and "background_tasks" parameters to ai_chatbot_endpoint() to allow FastAPI send file back [GS-66].
Downgrade duckduckgo-search==5.3.1b1 to remove "pyreqwest_impersonate" and fix the error building the docker image.
Fix "Cannot instantiate typing.Union, <class 'TypeError'>" error in messages_to_langchain_fmt() avoiding AnyMessage use.
Fix LCEL non-agent compatibility by removing "args_schema" from text_to_audio_response() Tool decorator [GS-66].
Published by tomkat-cr 5 months ago
Full Changelog: https://github.com/tomkat-cr/genericsuite-be-ai/compare/0.1.5...0.1.6
Implement new OpenAI model gpt-4o [GS-78].
Add file upload on FastAPI [GS-68].
Add STORAGE_URL_SEED and APP_HOST_NAME env. vars. to mask the S3 URL and avoid AWS over-billing attacks [GS-72].
Conversations conversion [GS-72].
Add requirements.txt generation to Makefile on publish.
Add ".PHONY" entries for all labels in Makefile.
Tiktoken and langchain-openai upgraded to use 'text-embedding-3-small' as default OPENAI_EMBEDDINGS_MODEL [GS-65].
ANTHROPIC_MODEL defaults to 'claude-3-sonnet'.
OpenAI vision model defaults to 'gpt-4o' [GS-78].
Remove the GenericSuite AI library dependency from GenericSuite Core [GS-74].
Redirect README instructions to the GenericSuite Documentation [GS-73].
"blueprint" as mandatory parameter to GenericDbHelper, AppContext and app_context_and_set_env(), to make posible the specific functions to GenericDbHelper [GS-79].
Fix DuckDuckGo & Google Search issues [GS-87].
Implement non-agent LCEL chains to solve issue getting AI assistant responses in deployed environments [GS-66].
Published by tomkat-cr 6 months ago
Updated genericsuite = "0.1.5" with "mangum" to make FastAPI work on AWS Lambda [FA-246].