Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[render preview] Release 2.2.7: Enhanced OpenAPI Toolkit, Claude 3.7, GPT-4.5, and LLM Post-Processing #123 #124

Closed
wants to merge 320 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
320 commits
Select commit Hold shift + click to select a range
b7cb8be
Bugfix/Prevent streaming of chatflow tool and chain tool (#3257)
HenryHengZJ Sep 25, 2024
bc76886
Bugfix/Enable Custom Tool Optional Input Schema (#3258)
HenryHengZJ Sep 26, 2024
8690c43
Bugfix/Searxng tool not working (#3263)
HenryHengZJ Sep 26, 2024
18f916a
LunaryAI automatic Thread and User tracking (#3233)
vincelwt Sep 26, 2024
9f6fcb9
feat: enable autofocus to the `new chatflow title` to improve usabili…
rhumbertgz Sep 26, 2024
eafa060
feat: save a new Chatflow when the `ENTER` key is pressed (#3261)
rhumbertgz Sep 26, 2024
b8b3483
feat: save Chatflow title when the `ENTER` key is pressed or discard …
rhumbertgz Sep 26, 2024
aeb5525
feat: enable autofocus to the `edit chatflow title` field to improve …
rhumbertgz Sep 26, 2024
4381656
feat: add search keyboard shortcut based on the current platform (#3267)
rhumbertgz Sep 26, 2024
d2d3f3d
feat: highlight valid/invalid connection between nodes (#3266)
rhumbertgz Sep 26, 2024
a028460
Bugfix/add fixes for search of view header (#3271)
HenryHengZJ Sep 26, 2024
d3c5abf
fix: warning when passing a boolean to border property of a Card (#3275)
rhumbertgz Sep 27, 2024
da0a15e
feat: add shortcut text hint to the search field (#3269)
rhumbertgz Sep 27, 2024
99cb8c3
fix: warning when a non-boolean values was used to set `checked` prop…
rhumbertgz Sep 27, 2024
01ae2ac
Bugfix/Throw error to prevent SSE from retrying (#3281)
HenryHengZJ Sep 28, 2024
04e8d02
Bugfix/Upsert files extension to input field (#3288)
HenryHengZJ Sep 30, 2024
d8ab3cb
Updating models.json with new Gemini models (#3296)
toi500 Oct 2, 2024
8c1f0bd
Bugfix/Add version API as public (#3297)
HenryHengZJ Oct 2, 2024
2d3aca5
Feature/Adding the new gemini-1.5-flash-8b model (#3306)
toi500 Oct 3, 2024
4908557
Update placeholder port to match Postgres default (#3307)
tgmerritt Oct 3, 2024
c9d8b87
Feature: Follow-up Prompts (#3280)
0xi4o Oct 4, 2024
f5cedb2
Feature/Revamp of OpenAPI Toolkit (#3312)
HenryHengZJ Oct 5, 2024
10bfba7
Bugfix/Rate limit updating (#3311)
HenryHengZJ Oct 5, 2024
14b7148
Feature/add endpoints for realtime api (#3318)
HenryHengZJ Oct 7, 2024
7868c8c
Added S3_FORCE_PATH_STYLE environment variable support for AWS S3 cli…
thiagolealassis Oct 7, 2024
f7ad125
Release/2.1.2 (#3324)
HenryHengZJ Oct 9, 2024
e710de1
Chore/update flowise embed version (#3327)
HenryHengZJ Oct 9, 2024
a5d4b55
Bugfix/Follow up prompts status (#3341)
HenryHengZJ Oct 11, 2024
d002096
fix: Fix [object Object] sent to milvus on search (#3336)
Ortes Oct 12, 2024
82da25d
Bugfix/Parse vars from overrideconfig to JSON (#3347)
HenryHengZJ Oct 13, 2024
6c35419
fix: added search for node labels (#3348)
prtkjakhar Oct 13, 2024
235fcfe
Enable Filters in MongoDB Vector Search Retriever (#3333)
ghondar Oct 16, 2024
1d193b4
[Feature] added Jina AI Embedding support (#3355)
definitelynotchirag Oct 17, 2024
d1adc4f
feat: Add Alibaba API credential and ChatAlibabaTongyi node (#3360)
definitelynotchirag Oct 17, 2024
5117948
Added NeMo Guardrails Chat component (#3331)
patrickreinan Oct 17, 2024
de6d675
Fix duplicate words in Airtable Agent description (#3368)
robhitt Oct 17, 2024
814754f
Bugfix/Update astradb dep (#3381)
HenryHengZJ Oct 19, 2024
5cb2f9a
fix: unknown collate in AddCustomTemplate migration for MariaDB (#3378)
karlobencic Oct 19, 2024
2c6cf12
Update README.md (#3379)
MorganMarshall Oct 19, 2024
4a9ffe7
Lunary: feedback tracking (#3332)
vincelwt Oct 21, 2024
a0d93f9
Feature/add rendering html tags for share chatbot (#3343)
HenryHengZJ Oct 21, 2024
35ce647
Refactor ChatOpenAI_ChatModels to include stopSequence parameter (#3388)
definitelynotchirag Oct 21, 2024
116d02d
Bugfix/Remove in-mem vector store from document store (#3395)
HenryHengZJ Oct 21, 2024
53e504c
Feature/Full File Uploads & Message Delete API (#3314)
HenryHengZJ Oct 23, 2024
3637e0b
Chore/models update (#3401)
HenryHengZJ Oct 23, 2024
281d1f2
Chore/update flowise embed version (#3402)
HenryHengZJ Oct 23, 2024
95e0f01
Release/2.1.3 (#3403)
HenryHengZJ Oct 23, 2024
f2d2f59
Add Cerebras Node and Credential (#3377)
tgmerritt Oct 23, 2024
cdd5c39
fix: Add missing migration in MariaDB (#3409)
karlobencic Oct 26, 2024
884dd89
Add couchbase vectore store support (#3093)
prajwal-pai77 Oct 26, 2024
cf06175
Update models.json (#3419)
jimjimovich Oct 27, 2024
ebc4641
Bugfix/Openai assistant thread not found (#3426)
HenryHengZJ Oct 29, 2024
c3c6f48
Bugfix/Updated Readme (#3434)
HenryHengZJ Oct 31, 2024
598f9a6
Bugfix/Save default credential data when add new (#3435)
HenryHengZJ Nov 1, 2024
d9bf612
Support global-agent for central proxy configuration (#3423)
akoo24 Nov 1, 2024
39380a4
Bugfix/add proxy env vars to docker compose (#3438)
HenryHengZJ Nov 1, 2024
15d59a9
[Prostgres Vector Store] Add PGVector Driver option + Fix null charac…
JJK801 Nov 1, 2024
a159da5
[Usntructured loaders] Make Unstructured API URL optional when enviro…
JJK801 Nov 1, 2024
012eabc
[Azure OpenAI] Make credentials optional when env variables are set (…
JJK801 Nov 1, 2024
afd2ddb
Chore/Add Haiku 3.5 (#3471)
HenryHengZJ Nov 6, 2024
99f28a2
Update commonUtils.ts (#3470)
serhiy-matoffo Nov 6, 2024
a6183ab
Azure OpenAI Embeddings ignores env variable AZURE_OPENAI_BASE_PATH (…
akoo24 Nov 7, 2024
eeb1d17
Chore/MongoDB Connection (#3469)
HenryHengZJ Nov 7, 2024
cfe2061
Update package.json (#3468)
aluferraz Nov 7, 2024
8466e1a
fix(proxy): restrict proxy to exact /api routes only (#3456)
khakanali Nov 7, 2024
fe03683
FEATURE:: Support for metrics collection - Prometheus and Open Teleme…
vinodkiran Nov 8, 2024
275c9e3
Update otel.config.yml
HenryHengZJ Nov 8, 2024
ccc0088
feat: Add BraveSearchAPI document loader (#3486)
rynomster Nov 8, 2024
d64cb70
Bugfix/metrics provider undefined error (#3489)
HenryHengZJ Nov 8, 2024
835b151
Add Up and Down arrow functionality to chat messages (#3440)
tgmerritt Nov 9, 2024
b017723
feat: Add Custom Api Url Param for Self-hosted FireCrawl endpoint (#3…
ZacharyQin Nov 9, 2024
0153735
Feature/Postgres agent memory (#3495)
HenryHengZJ Nov 9, 2024
1e2dc03
Bugfix/Address file name with special chars (#3496)
HenryHengZJ Nov 9, 2024
51e5591
Feature/Add multi modal to chat ollama (#3499)
HenryHengZJ Nov 10, 2024
3b72017
Chore/bump dep (#3488)
HenryHengZJ Nov 12, 2024
537aa51
Enable/disable variables in override configuration (#3467)
0xi4o Nov 13, 2024
d057129
Release/2.1.4 (#3506)
HenryHengZJ Nov 13, 2024
eaec34f
Bugfix/Allow analytics override config (#3520)
HenryHengZJ Nov 15, 2024
38ddbd8
Feature/Add stripe toolkit (#3522)
HenryHengZJ Nov 15, 2024
16ceed1
Feature/Add support for state-based metadata filter to Retriever Tool…
serhiy-matoffo Nov 16, 2024
1ccd976
Bugfix/Override config vars (#3524)
HenryHengZJ Nov 16, 2024
47e723b
Bugfix/Query Runner already released (#3525)
HenryHengZJ Nov 16, 2024
bc77e40
Bugfix/OverrideConfig for Upsert Vector (#3527)
HenryHengZJ Nov 16, 2024
ebf9a98
Release/2.1.5 (#3535)
HenryHengZJ Nov 19, 2024
919cb50
Redis default port is 6379 (#3548)
tgmerritt Nov 21, 2024
36496b1
Added new gpt4o model and set "gpt 4o (latest)" as default model for …
saatchi-david Nov 21, 2024
a2c36b4
Feature/Add new doc store upsert and refresh API (#3556)
HenryHengZJ Nov 25, 2024
7d9e151
Bugfix/Upsert files override (#3569)
HenryHengZJ Nov 25, 2024
af5e6b0
Enhanced Chat Embed Configuration View (#3559)
toi500 Nov 25, 2024
76ae921
Feature/add ability to show variable output (#3580)
HenryHengZJ Nov 26, 2024
4c1951d
Feature/Extract Metadata Retriever (#3579)
HenryHengZJ Nov 26, 2024
c50c7bd
Chore/models update (#3590)
HenryHengZJ Nov 27, 2024
126808b
Fix 'label' undefined errors for sequential agents (#3585)
px-amaac Nov 27, 2024
940c8fd
Chore/LC v0.3 (#3517)
HenryHengZJ Nov 28, 2024
f6858f4
Chore/update flowise embed version@2.0.8 (#3602)
HenryHengZJ Nov 28, 2024
3478b39
Release/2.2.0 (#3601)
HenryHengZJ Nov 28, 2024
56c00eb
fix/unable-to-upload-documents (#3606)
chungyau97 Nov 29, 2024
3b804d7
Release/2.2.1 (#3607)
HenryHengZJ Nov 29, 2024
d20a970
Bugfix/redis connection is closed (#3591)
xmaiconx Dec 3, 2024
bd203a1
Bugfix/Refresh record manager config (#3626)
HenryHengZJ Dec 3, 2024
7482e7f
Chore/Update multer path if blob storage path is set (#3609)
HenryHengZJ Dec 3, 2024
ba8a462
[Bugfix] Milvus search error (#3623)
eduardconstantin Dec 3, 2024
20e0938
Bugfix/Uploaded file type is empty (#3634)
HenryHengZJ Dec 5, 2024
371da23
Bugfix/Node ID Replacing Existing One (#3643)
HenryHengZJ Dec 5, 2024
09d20fa
fix: change data source lifecycle on agent memory mysql saver (#3578)
joaopaulo-m Dec 6, 2024
e773181
IBM Watsonx embeddings node (#3648)
eduardconstantin Dec 6, 2024
e020452
Chore/Bump Pinecone Dep to V4 (#3646)
HenryHengZJ Dec 6, 2024
fe2ed26
Feature/Custom Assistant Builder (#3631)
HenryHengZJ Dec 6, 2024
cadc3b8
Feature/Add dedicated agent memory nodes (#3649)
HenryHengZJ Dec 6, 2024
7d1234a
Bugfix/SQLite agent memory node (#3650)
HenryHengZJ Dec 6, 2024
680fe8d
feat(models): add Llama 3.3 70B models to groqChat (#3651)
jeanibarz Dec 8, 2024
ddca80d
Bugfix/Prevent open connections on typeorm datasource (#3652)
HenryHengZJ Dec 8, 2024
5c54162
Chore/remove app server functions from utils file (#3671)
HenryHengZJ Dec 10, 2024
b087f4c
Release/2.2.2 (#3673)
HenryHengZJ Dec 10, 2024
99d4bac
IBM Watsonx LLM node (#3674)
eduardconstantin Dec 11, 2024
13fb0f1
fix: followUpPrompts migration for MariaDB (#3677)
karlobencic Dec 11, 2024
d974564
Chore/swagger update (#3692)
HenryHengZJ Dec 12, 2024
26b78ad
feat: Add options to filter conversation history messages used in seq…
jeanibarz Dec 12, 2024
bfd6770
feat. add epub support #3629 (#3668)
Ajay-Satish-01 Dec 12, 2024
85abd15
Bugfix/Get value with nested metadata filter (#3695)
HenryHengZJ Dec 12, 2024
d549885
Chore/Enhancement: Improve 'Require Approval' Description to Indicate…
jeanibarz Dec 17, 2024
4c29b23
Feature/Add Groq Whisper support (#3706)
ghondar Dec 17, 2024
6511fb3
fix: mapping full file upload configuration (#3713)
daniloferreira Dec 17, 2024
4044feb
Bugfix/Add tool description to custom assistant (#3727)
HenryHengZJ Dec 17, 2024
fff6319
lint fix sharechatbot jsx
HenryHengZJ Dec 17, 2024
2360f5f
Feature/Add Azure Cognitive speech-to-text functionality (#3718)
ghondar Dec 18, 2024
bb15e5c
Bugfix/Hide agent response for chatflow (#3729)
richersoon Dec 18, 2024
1b48d56
Add missing inputs (#3726)
eduardconstantin Dec 18, 2024
c809f41
feat: Add conversation history selection options to ConditionAgent no…
jeanibarz Dec 18, 2024
e8903a5
Bugfix/custom assistant tools description (#3739)
HenryHengZJ Dec 19, 2024
2df129f
Vertex Gemini Custom Model Changes (#3737)
vijaykammili Dec 19, 2024
d6b3546
Bugfix/Share Chatbot Config (#3742)
HenryHengZJ Dec 19, 2024
b29523d
Feature/add composio tool (#3722)
abhishekpatil4 Dec 19, 2024
bbe0203
[Feature] Update Exa category filter with new values (#3746)
forcewake Dec 20, 2024
e8a33e4
fix: Error Cannot read properties of undefined (reading 'sendTelemetr…
karlobencic Dec 21, 2024
94f67c0
Feature/Add Print or Export Text Document Tool (#3743)
yapwr Dec 21, 2024
0381a99
[Feature] Repair JSON from LLM in StructuredOutputParserAdvanced (#3723)
JJK801 Dec 21, 2024
93f3a5d
Feat/deepseek chat node (#3732)
nguyenhung10012003 Dec 21, 2024
a7c1ab8
Feature/Add Neo4j GraphRag support (#3686)
ghondar Dec 23, 2024
4e434fd
Release/2.2.3 (#3756)
HenryHengZJ Dec 23, 2024
5ba0ded
Feature/add nvdia nim (#3749)
HenryHengZJ Dec 31, 2024
9cceba2
Add `rerank-2` and `rerank-2-lite` for Voyage AI Rerank Retriever (#3…
hans00 Jan 2, 2025
b34a823
bugfix: Add nil check in escapeAllStrings to prevent TypeError when u…
nguyenhung10012003 Jan 2, 2025
50475f1
Feature/add disabled nodes env variable (#3797)
HenryHengZJ Jan 2, 2025
d71ad22
[BUGFIX] Fix value.startsWith is not a function error (#3747)
simsketch Jan 2, 2025
b6165e3
fix: getting docId, storeId parameters (#3761)
hardviper Jan 3, 2025
7af5815
fix(ui): fix typo (#3799)
Aarebecca Jan 3, 2025
e22c601
clean(components): is debug boolean syntax shorthand (#3770)
ahmedrowaihi Jan 3, 2025
1111101
Bugfix/Anthropic messages in agentflow (#3801)
HenryHengZJ Jan 3, 2025
3b13e83
Feature/Add Groq for followup prompts (#3806)
sunnymodi21 Jan 4, 2025
4c40030
Bugfix/update doc store naming convention (#3814)
HenryHengZJ Jan 6, 2025
7aead83
Feature/update json loader to have dynamic metadata (#3811)
HenryHengZJ Jan 6, 2025
2280159
fix: artifacts key in object does not have messages property, which g…
tom0k1 Jan 6, 2025
9a417bd
Bugfix/update nodevm sandbox options, sanitize tablename (#3818)
HenryHengZJ Jan 7, 2025
e429af1
feat(follow-up/ollama): support ollama provider (#3795)
ahmedrowaihi Jan 7, 2025
b2224b9
Feature/update share chatbot for adding title colors (#3823)
HenryHengZJ Jan 7, 2025
c2c1ca9
Slight Redis Memory description change to include units (#3824)
ryanhalliday Jan 8, 2025
1ae78c2
[Feat] Allow AWS SECRETS MANAGER instead of storing AES Encrypted in …
aluferraz Jan 8, 2025
8d26605
Feature/update upsert API (#3836)
HenryHengZJ Jan 9, 2025
c36267c
Bugfix/Undefined loader config (#3846)
HenryHengZJ Jan 9, 2025
a2d5cf9
Bugfix/show agent messages status on sharechatbot (#3851)
HenryHengZJ Jan 11, 2025
15d06ec
Feature/Allow winston to stream to s3 (#3848)
HenryHengZJ Jan 11, 2025
d60242c
Feat/add multer s3 (#3854)
HenryHengZJ Jan 12, 2025
89c5eb0
Lunary: fix user messages (#3852)
hughcrt Jan 12, 2025
d2fa430
Chore/swagger update (#3860)
HenryHengZJ Jan 13, 2025
aab493c
Feature/OpenRouter (#3865)
HenryHengZJ Jan 13, 2025
16aa3a0
Get/Delete ChatMessage based on startDateTime / endDateTime (#3867)
ryanhalliday Jan 14, 2025
cc87d85
Chore: Update @langchain/community (#3787)
PylotLight Jan 14, 2025
24eb437
[Feature] improve CsvLoader & clean code (#3830)
JJK801 Jan 14, 2025
ef96b57
Release/2.2.4 (#3870)
HenryHengZJ Jan 14, 2025
62d5d1e
Bugfix/add hidden properties to custom tool (#3875)
HenryHengZJ Jan 15, 2025
c89be26
Bugfix/update get chat messages chattype (#3881)
HenryHengZJ Jan 16, 2025
5c9f178
Bugfix/Handling empty strings when resolving variables (#3864)
supraface Jan 16, 2025
9c2203b
Feature: Add Jina AI Rerank Retriever (#3898)
nguyenhung10012003 Jan 20, 2025
320eab6
Chore/Add base options to azure chat openai (#3886)
HenryHengZJ Jan 20, 2025
3fc4e79
Add tenant and database configs for Chroma Cloud credentials (#3872)
itaismith Jan 20, 2025
4c9d46d
fix: Fixing logger for custom S3 stream (#3900)
touatiosema Jan 20, 2025
4aa97b0
Bugfix/Escape JSON in Prompt Message (#3901)
HenryHengZJ Jan 20, 2025
5cc0e98
Bugfix/Allow prefix vars when executing custom function (#3902)
HenryHengZJ Jan 21, 2025
ca559c5
Update model names for deepseek components (#3911)
nguyenhung10012003 Jan 22, 2025
1baa4f8
Bugfix/Allow files uploads without enabling overrideconfig (#3915)
HenryHengZJ Jan 22, 2025
50a7339
fix: Correct logic error in tool input assignment for ChatflowTool (#…
kirisame-wang Jan 22, 2025
e26fc63
Feature/Custom Function to Seq Agent (#3612)
HenryHengZJ Jan 23, 2025
5d31175
chore/update pnpm lock indentation (#3916)
HenryHengZJ Jan 23, 2025
14adb93
Update pnpm-lock.yaml
HenryHengZJ Jan 23, 2025
a2a475b
Feature/Add bullmq redis for message queue processing (#3568)
HenryHengZJ Jan 23, 2025
6e95989
Bugfix/Overrideconfig for form data body (#3932)
HenryHengZJ Jan 27, 2025
dc8112d
Create SECURITY.md
HenryHengZJ Jan 30, 2025
9a68b4b
Chore/update nvidia NIM label (#3943)
HenryHengZJ Jan 30, 2025
ad60140
Bugfix/Update start date from timestamp to date format (#3951)
HenryHengZJ Jan 30, 2025
abb1b2d
fix: Update Perplexity AI model to sonar (#3949)
AsharibAli Jan 30, 2025
315536e
Adding DeepSeekR1 Distill to Groq modal (#3961)
adolfousier Feb 1, 2025
81cd904
Update RateLimit.jsx - link to documentation incorrect (#3954)
saatchi-david Feb 1, 2025
a49177f
Chore/O3 MINI (#3962)
HenryHengZJ Feb 1, 2025
20a797d
Feature/Add ability to create new doc store on upsert (#3965)
HenryHengZJ Feb 1, 2025
7d125d5
update cohere rerank models to v3.0 and v3.5 (#3972)
gururise Feb 3, 2025
8d327e4
Expose dimensions parameter on Jina Embeddings (#3969)
gururise Feb 3, 2025
e1ea1c6
Fix: Ensure normalizeURL retains port number (#3959)
jeme95 Feb 3, 2025
2a0e712
feat: preserve UI state memory on API override (#3957)
grapestore Feb 3, 2025
a0b4abd
Feature/update openai version, add reasoning effort param, add o3 min…
HenryHengZJ Feb 4, 2025
01cb3ef
Bugfix/delete messages via sessionId (#3982)
HenryHengZJ Feb 4, 2025
aeb82c2
Release/2.2.5 (#3983)
HenryHengZJ Feb 4, 2025
8e2e790
Update DeleteDocStoreDialog.jsx - added clarification that data will …
saatchi-david Feb 6, 2025
c96d634
Bugfix/update view message dialog (#3994)
HenryHengZJ Feb 6, 2025
96dd1aa
Update Gemini models as per the Gemini API Documentation. (#3996)
toi500 Feb 6, 2025
0449e80
Late Chunking support for Jina Embeddings (#4002)
gururise Feb 8, 2025
15dc8b7
Update README.md (#3999)
mikz0rz Feb 8, 2025
54cdf00
Feat/stream flow variables (#4022)
HenryHengZJ Feb 12, 2025
23ccef1
Bugfix/Typeorm Postgres Driver Not Found (#4024)
HenryHengZJ Feb 12, 2025
c0a7478
o3-mini Adjustments. (#4009)
saatchi-david Feb 12, 2025
f71e5cb
Chore/Update vertex dependency (#4058)
HenryHengZJ Feb 22, 2025
19c36c6
Add Paste JSON Schema Functionality to Custom Tools (#4053)
AsharibAli Feb 22, 2025
542936c
now user can name each document loader for ease of tracking (#4039)
ritvikPuranik Feb 22, 2025
0e10952
feat: Add Arize & Phoenix Tracer Integration (#4046)
ialisaleh Feb 24, 2025
fe2d160
Chore/Fix Swagger YAML formatting (#4034)
sunnymodi21 Feb 24, 2025
ac138a7
Chore/Claude 3.7 (#4075)
HenryHengZJ Feb 24, 2025
3290798
Replace .edgebutton 'x' text with <IconX/> (#4035)
MatthewssSmith1 Feb 25, 2025
2293669
Adding Tavily custom tool (#4027)
isengartz Feb 25, 2025
d8dc182
Claude 3.7 on Vertex and Bedrock (#4082)
HenryHengZJ Feb 26, 2025
86a26f6
Fix vector store filter not work (#4065)
hans00 Feb 26, 2025
97a196e
Chore/patch deps (#4015)
HenryHengZJ Feb 26, 2025
a8d7433
Bugfix/Add date input type for custom tool (#4087)
HenryHengZJ Feb 26, 2025
9a92aa1
New Feature: Add post postprocessing of response from LLM using custo…
vinodkiran Feb 26, 2025
7d8541a
Fix: ignore skipInferTableTypes on document storage process (#4068)
sunnymodi21 Feb 27, 2025
1678815
Feature/nim container (#3966)
HenryHengZJ Feb 27, 2025
289c259
Add gpt 4.5 (#4100)
HarshavardhanNetha Feb 28, 2025
e58c8b9
Several features for OpenAPI toolkit and OpenAI Assistants (#3989)
owengo Feb 28, 2025
da04289
Release/2.2.6 (#4102)
HenryHengZJ Feb 28, 2025
fc9740a
Fix for node-crashing "undefined (reading 'streaming')" error (#4104)
raffareis Feb 28, 2025
fc9d6e7
Release/2.2.6-hotfix.1 (#4105)
HenryHengZJ Feb 28, 2025
9c22bee
Feature/Add multi select option to composio (#4122)
HenryHengZJ Mar 6, 2025
713ed26
Feature/MCP (Model Context Protocol) (#4134)
HenryHengZJ Mar 6, 2025
29bff64
docs: add Traditional and Simplified Chinese README files (#4132)
appleboy Mar 6, 2025
cf7d841
Release/2.2.7 (#4135)
HenryHengZJ Mar 6, 2025
ac7cf30
Feature/Custom MCP (#4136)
HenryHengZJ Mar 6, 2025
7ff2104
Merge branch 'main' into production
maxtechera Mar 6, 2025
a369f0c
flowise-components@2.2.7-patch.1
HenryHengZJ Mar 7, 2025
747ade1
Add streaming with server events to AnswersContext
maxtechera Mar 7, 2025
8f5babd
feat: add CHATFLOW_DOMAIN_OVERRIDE environment variable to override A…
maxtechera Mar 8, 2025
d0f1feb
feat: add redirectURL to authentication redirects
maxtechera Mar 9, 2025
08c2133
Merge branch 'main' into update/FLOWISE_Release_2_2_7
maxtechera Mar 9, 2025
bb5cb71
Add logging for CHATFLOW_DOMAIN_OVERRIDE
maxtechera Mar 9, 2025
28a7ed8
feat(database): add chatflowId field to Chat entity
maxtechera Mar 9, 2025
3fd15c0
feat(chats): update chat service to include chatflow relation
maxtechera Mar 9, 2025
b710e59
fix(auth): add JWT error logging
maxtechera Mar 9, 2025
e839a69
refactor(ui): enhance UI components for improved chat handling
maxtechera Mar 9, 2025
f16a90b
feat(chat): refactor chat page to support direct chatflow association
maxtechera Mar 9, 2025
3ed6024
fix: Auth required for ChatMessage and upsert on internal prediction
maxtechera Mar 10, 2025
794d6ec
fix: Anthropic messages undefined preventing second message
maxtechera Mar 10, 2025
a1a7490
fix: TEMPORARY ToolAgent filter duplicated tools by name
maxtechera Mar 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Auth required for ChatMessage and upsert on internal prediction
  • Loading branch information
maxtechera committed Mar 10, 2025

Unverified

No user is associated with the committer email.
commit 3ed60248f102f4478cc6b135193696ab55ba095c
22 changes: 21 additions & 1 deletion packages/server/src/controllers/internal-predictions/index.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { utilBuildChatflow } from '../../utils/buildChatflow'
import { getRunningExpressApp } from '../../utils/getRunningExpressApp'
import { getErrorMessage } from '../../errors/utils'
import { MODE } from '../../Interface'

import chatflowsService from '../../services/chatflows'
// Send input message and get prediction result (Internal)
const createInternalPrediction = async (req: Request, res: Response, next: NextFunction) => {
try {
@@ -12,6 +12,16 @@ const createInternalPrediction = async (req: Request, res: Response, next: NextF
return
} else {
const apiResponse = await utilBuildChatflow(req, true)
const { chatId, question: prompt } = req.body
if (chatId) {
await chatflowsService.upsertChat({
id: chatId,
user: req.user,
prompt,
chatflowId: req.params.id,
chatflowChatId: apiResponse.chatId
})
}
if (apiResponse) return res.json(apiResponse)
}
} catch (error) {
@@ -37,6 +47,16 @@ const createAndStreamInternalPrediction = async (req: Request, res: Response, ne
}

const apiResponse = await utilBuildChatflow(req, true)
const { question: prompt } = req.body
if (chatId) {
await chatflowsService.upsertChat({
id: chatId,
user: req.user,
prompt,
chatflowId: req.params.id,
chatflowChatId: apiResponse.chatId
})
}
sseStreamer.streamMetadataEvent(apiResponse.chatId, apiResponse)
} catch (error) {
if (chatId) {
22 changes: 12 additions & 10 deletions packages/server/src/services/chatflows/index.ts
Original file line number Diff line number Diff line change
@@ -531,6 +531,7 @@ const upsertChat = async ({
const chatRepository = appServer.AppDataSource.getRepository(Chat)

const chatProperties = {
id: chatflowChatId,
title: prompt,
chatflowChatId,
filters,
@@ -539,20 +540,21 @@ const upsertChat = async ({
chatflow: { id: chatflowId }
}

let chat: Chat
if (!id) {
let chat: Chat | undefined
if (chatflowChatId) {
const existingChat = await chatRepository.findOneBy({ chatflowChatId })
if (existingChat) chat = chatRepository.merge(existingChat, chatProperties)
}
if (!chat) {
// Create new chat
chat = chatRepository.create(chatProperties)
}
if (chat) {
const updatedChat = await chatRepository.save(chat)
return updatedChat
} else {
// Update existing chat
const existingChat = await chatRepository.findOneBy({ id })
if (!existingChat) {
throw new InternalFlowiseError(StatusCodes.NOT_FOUND, `Chat ${id} not found`)
}
chat = chatRepository.merge(existingChat, chatProperties)
throw new InternalFlowiseError(StatusCodes.NOT_FOUND, `Chat ${id} not found`)
}

return await chatRepository.save(chat)
} catch (error) {
throw new InternalFlowiseError(StatusCodes.INTERNAL_SERVER_ERROR, `Error: chatflowsService.upsertChat - ${getErrorMessage(error)}`)
}
3 changes: 2 additions & 1 deletion packages/ui/src/views/chatmessage/ChatMessage.jsx
Original file line number Diff line number Diff line change
@@ -859,14 +859,15 @@ export const ChatMessage = ({ open, chatflowid, isAgentCanvas, isDialog, preview
const input = params.question
const username = localStorage.getItem('username')
const password = localStorage.getItem('password')
const token = sessionStorage.getItem('access_token')
params.streaming = true
await fetchEventSource(`${baseURL}/api/v1/internal-prediction/${chatflowid}`, {
openWhenHidden: true,
method: 'POST',
body: JSON.stringify(params),
headers: {
'Content-Type': 'application/json',
Authorization: username && password ? `Basic ${btoa(`${username}:${password}`)}` : undefined,
Authorization: token ? `Bearer ${token}` : username && password ? `Basic ${btoa(`${username}:${password}`)}` : undefined,
'x-request-from': 'internal'
},
async onopen(response) {