Skip to content

Releases: tomkat-cr/genericsuite-be-ai

0.1.9

27 Jul 12:36
8f9b2f1
Compare
Choose a tag to compare

0.1.9 (2024-07-27)

New

Add: ".nvmrc" file to set the repo default node version.

Fixes

Fix: typing in create_app() parameters.

0.1.8

19 Jul 01:28
f8c50c3
Compare
Choose a tag to compare

0.1.8 (2024-07-18)

New

Add "langchain-google-community" due to a deprecation notice about GoogleSearchAPIWrapper [GS-66].
Add Langchain Tools description length validation, to avoid descriptions > 1024 chars.

Changes

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.

Fixes

Fix audio processing issues in FastAPI due to AWS API Gateway limitations, sending the base64 encoded files back [GS-95].
Change: minor linting changes.

0.1.7

07 Jun 09:17
4eee91f
Compare
Choose a tag to compare

0.1.7 (2024-06-06)

New

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].

Changes

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].

Fixes

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].

0.1.6

02 Jun 12:51
Compare
Choose a tag to compare
0.1.6 Pre-release
Pre-release

Full Changelog: 0.1.5...0.1.6

0.1.6 (2024-05-28)


New

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.

Changes

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].

Fixes

Fix DuckDuckGo & Google Search issues [GS-87].
Implement non-agent LCEL chains to solve issue getting AI assistant responses in deployed environments [GS-66].

0.1.5

07 May 02:27
Compare
Choose a tag to compare

0.1.5 (2024-04-20)


Changes

Updated genericsuite = "0.1.5" with "mangum" to make FastAPI work on AWS Lambda [FA-246].