2
0
Commit Graph

116 Commits

Author SHA1 Message Date
2fcf83c529 Introduce a new high-performing standalone chat API (#1200)
Closes #1154

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Added authentication functionality for user sessions in chat API.
- Introduced chat-related API endpoints for starting, previewing, and
continuing chat sessions, and streaming messages.
- Implemented WhatsApp API webhook handling for receiving and processing
messages.
- Added environment variable `NEXT_PUBLIC_CHAT_API_URL` for chat API URL
configuration.

- **Bug Fixes**
	- Adjusted file upload logic to correctly determine the API host.
	- Fixed message streaming URL in chat integration with OpenAI.

- **Documentation**
- Updated guides for creating blocks, local installation, self-hosting,
and deployment to use `bun` instead of `pnpm`.

- **Refactor**
	- Refactored chat API functionalities to use modular architecture.
- Simplified client log saving and session update functionalities by
using external functions.
	- Transitioned package management and workflow commands to use `bun`.

- **Chores**
- Switched to `bun` for package management in Dockerfiles and GitHub
workflows.
	- Added new Dockerfile for chat API service setup with Bun framework.
	- Updated `.prettierignore` and documentation with new commands.

- **Style**
	- No visible changes to end-users.

- **Tests**
	- No visible changes to end-users.

- **Revert**
	- No reverts in this release.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-21 10:23:23 +01:00
ed5096e2b6 ♻️ Include forged blocks schema in typebot schema
Closes #1364
2024-03-19 08:31:36 +01:00
5073be2439 ♻️ Remove @typebot.io/schemas from @typebot.io/lib 2024-03-15 16:32:29 +01:00
ff3807a265 ⬆️ Upgrade ai package 2024-03-14 19:40:40 +01:00
c2003dab91 ⬆️ Upgrade ai and openai packages 2024-03-07 14:26:48 +01:00
c6161179d0 🐛 (openai) Fix 400 error when tools array empty
Closes #1205
2024-02-02 11:03:17 +01:00
2462e794c9 ⬆️ Upgrade next 2024-01-31 14:58:31 +01:00
3b27f16735 ⬆️ Upgrade google-spreadsheet and fix openapi docs g… 2024-01-31 09:54:09 +01:00
4b8b80e996 👷 Change pre-commit format fix to check only 2024-01-29 12:08:11 +01:00
03258e0f64 (openai) Add "Ask assistant" action
Closes #1024
2024-01-11 08:29:41 +01:00
d42e4a9ce1 Add editor header translation keys (#1110)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Implemented internationalization support across various components
using the `useTranslate` function for dynamic content translation.

- **Enhancements**
- Updated UI elements such as buttons, tooltips, placeholders, and
labels to display translated text, improving accessibility and user
experience for non-English speakers.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
2023-12-28 10:50:33 +01:00
1e5fa5a575 📝 Migrate from Docusaurus to Mintlify (#1115)
Closes #868
2023-12-22 09:13:53 +01:00
5e019bbb22 Introducing The Forge (#1072)
The Forge allows anyone to easily create their own Typebot Block.

Closes #380
2023-12-13 10:22:02 +01:00
bb41226a04 Allow user to share a flow publicly and make it duplicatable
Closes #360
2023-11-23 12:05:31 +01:00
1a44bf4935 (openai) Add create speech OpenAI action
Closes #1025
2023-11-20 14:01:50 +01:00
35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00
b2b82c48e1 ⬆️ Upgrade Sentry to mitigate security issue
https://github.com/getsentry/sentry-javascript/security?mkt_tok=Nzc2LU1KTi01MDEAAAGPNi0ooiOxT0sphdzXd6xHU63d5z5Sc75FNR8cH-6EK-zlvUsUuUqP1YsmnxivxEyXnGZS2cN8XkpuNNGi3NIfoDnwoHci-31tbyJQB8y0Cg
2023-11-06 16:24:26 +01:00
0c22d858b7 📦 Add strict package versioning to avoid incompatibility in workspace 2023-11-06 16:22:25 +01:00
3e7b9b3afd ⬆️ Upgrade sentry and improve its reliability 2023-10-07 12:40:43 +02:00
225dfed313 ⬆️ (openai) Replace openai-edge with openai and upgrade next 2023-10-06 14:38:54 +02:00
4673989104 💚 Rename back viewer 2023-09-22 16:25:31 +02:00
7d57e8dd06 ♻️ Export bot-engine code into its own package 2023-09-20 15:42:34 +02:00
f626c9867c (whatsapp) Improve WhatsApp preview management
Closes #800
2023-09-19 11:53:18 +02:00
9e8fa124b5 (dateInput) Add format option and improve parsing
Use date-fns for custom format and make sure dates are timezone independants

Closes #533, closes #592
2023-09-05 10:34:56 +02:00
27a5f4eb74 (openai) Add custom provider and custom models
Closes #532
2023-09-01 16:19:59 +02:00
dfcfdf2138 🚸 Skip validation if __ENV.js file does not exist 2023-08-31 09:57:54 +02:00
9a79bc38ee Use minio for presigned urls and remove aws sdk 2023-08-30 09:08:05 +02:00
b852b4af0b Add WhatsApp integration beta test (#722)
Related to #401
2023-08-29 10:05:24 +02:00
786e5cb582 🧑‍💻 Improve env variables type safety and management (#718)
Closes #679
2023-08-28 09:13:53 +02:00
d700af17e9 🚸 (openai) Implement retries if openai rate limit reached 2023-08-24 15:28:44 +02:00
22cedb379d Revert "⬆️ Upgrade next packages"
This reverts commit 401efa9d0c.
2023-08-14 21:49:03 +02:00
401efa9d0c ⬆️ Upgrade next packages 2023-08-11 15:17:17 +02:00
482462f2b1 📝 (openai) Add troobleshoot guide for empty message issue 2023-08-01 17:50:29 +02:00
d3fb31b43a Downgrade next package version
Introduced "Invalid left-hand side in assignment"
2023-07-15 14:47:09 +02:00
e293cb0111 Add Next.js embed library 2023-07-15 12:28:10 +02:00
81bc0746cf ⬆️ Upgrade dependencies 2023-07-15 10:46:36 +02:00
5644a0c8e0 ⬆️ Upgrade OpenAI stream deps 2023-07-12 12:00:23 +02:00
174d50ad1b (settings) Parse custom head code to remove invalid text nodes 2023-07-11 19:17:38 +02:00
3be39cbc78 (openai) Use Vercel's AI SDK for streaming 2023-06-20 17:33:30 +02:00
83f2a29faa (openai) Add new models and remove tiktoken
Instead of computing total tokens with tiktoken we just attempt retries after trimming the first message
2023-06-16 16:50:32 +02:00
1e9c4bcb9a 📦 Add Cloudron package (#550)
Closes #30
2023-06-14 08:59:38 +02:00
55bbf0e593 ⬆️ Upgrade dependencies 2023-05-25 18:36:51 +02:00
56364fd863 (openai) Stream chat completion to avoid serverless timeout (#526)
Closes #520
2023-05-25 10:32:35 +02:00
68a15f5ac1 ⬆️ Upgrade dependencies 2023-05-02 15:33:42 -04:00
e58016e43a (openai) Truncate messages sequence automatically if reaching token limit 2023-05-02 13:37:02 -04:00
21b1d74b7e ⬆️ Upgrade dependencies 2023-04-03 15:28:16 +02:00
90cb0750b8 💚 Fix Sentry sourcemap upload
Closes #405
2023-03-21 13:58:05 +01:00
cbc8194f19 ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
ff09814ead ⬆️ Upgrade dependencies 2023-03-14 15:08:53 +01:00
6b08df71ba 🚸 (phone) Improve phone input behavior and validation
Now accepting landline phone numbers. Consistent select UI on every browser. Auto focus on country select.
2023-03-09 14:21:09 +01:00