Commit aeb04fb
authored
Vercel sdk v5 maybe this time (#1766)
* Vercel SDK v5
This PR introduce Vercel SDK v5 which force us also to upgrade Zod from
v3 to v4 and also to change our server action lib because is not
compatible with Zod 4.
* Fix unhandle Vercel SDK error NoOutputGeneratedError
The way we handle this is by listening to `onError` callback on
`streamText` and throw the error before we start reading from the
streamText promises which will fail anyway because when Vercel gets
provider API error they return the NoOutputGeneratedError content which
is not handle in our side. Throwing on their onError callback we avoid
this problem1 parent 41bf7f7 commit aeb04fb
File tree
345 files changed
+5113
-4727
lines changed- apps
- gateway
- src
- openApi/schemas
- presenters
- routes/api/v3
- conversations/chat
- projects/versions
- create
- documents
- logs
- run
- getAll
- get
- web
- src
- actions
- actions
- admin
- documentTriggers/manualTrigger
- features
- grants
- promocodes
- users
- workspaceFeatures
- apiKeys
- billing
- commits
- copilot
- datasetRows
- datasets
- documentLogs
- documentSuggestions
- documents
- destroyDocumentAction
- sharing
- triggers
- evaluationTemplates
- evaluationsV2
- events
- experiments
- files
- history
- resetCommitVersion
- resetDocumentVersion
- revertCommitVersion
- revertDocumentVersion
- integrations
- pipedream
- invitations
- latte
- magicLinkTokens
- memberships
- procedures
- projects
- promocodes
- providerApiKeys
- rewards
- runs
- sdk
- tools/results
- user
- webhooks
- workspaceOnboarding
- workspaces
- app
- (actions)/actions/[actionType]/_lib
- (admin)/backoffice/rewards
- (private)
- dashboard/_components/ProjectsTable
- datasets/_components
- DeleteDatasetModal
- RootHeader/GenerateDatasetModal/GenerateDatasetModal
- projects/[projectId]/versions/[commitUuid]
- _components/Sidebar/CreateDraftCommitModal
- documents/[documentUuid]
- (withTabs)
- evaluations
- [evaluationUuid]/_components
- _components
- experiments/_components/ExperimentsComparison/ExperimentItem
- logs
- _components/DocumentLogs/SaveLogsAsDatasetModal
- upload
- _components/DocumentEditor/Editor/UpdateToPromptl
- history/_components
- CommitChangesList
- CommitsList
- settings/_components
- Memberships/New
- ProviderApiKeys/New/_components/Configuration/OpenAI
- (public)
- invitations/[token]/InvitationForm
- login/LoginForm
- magic-links/confirm/[token]
- setup/SetupForm
- api
- admin/rewards/pending
- datasets/create
- documents
- [documentUuid]/run
- logs/[documentLogUuid]/chat
- integrations/[integrationName]
- listTools
- references
- projects/[projectId]/commits/[commitUuid]/documents/[documentUuid]/evaluations/[evaluationUuid]/run-llm
- components
- ChatWrapper/Message
- PlaygroundCommon/StatusIndicator
- Providers/WebsocketsProvider
- evaluations
- rule
- layouts/AppLayout/Header/Rewards/Content/RewardMenu
- modals/DestroyModal
- helpers
- hooks
- latte
- pipedreamProps
- playgroundChat
- lib
- services/routes
- stores
- admin
- packages
- constants
- src
- ai
- documentTriggers
- evaluations
- events
- latitudePromptSchema
- providers
- azure
- openai
- core
- src
- events
- lib
- disk
- streamManager
- ChainStreamConsumer
- clientTools
- resolveTools
- step
- vercelSdkFromV5ToV4
- services
- actions
- agents
- ai
- buildTools
- estimateCost
- providers/rules
- providerMetadata
- chains
- ChainValidator
- ProviderProcessor
- commits
- copilot
- latte
- credits
- tools
- projects
- settings
- triggers
- documentLogs
- addMessages
- documentTriggers/helpers
- evaluationsV2
- llm
- rule
- integrations
- helpers
- latitudeTools
- runCode
- think
- todo
- webExtract
- webSearch
- mcpServers
- providerLogs
- tracing/spans
- tests/factories
- env/src
- sdks/typescript/src
- tests
- helpers/mockTools
- test
- utils
- adapters/openai
- telemetry/typescript
- web-ui
- src/ds/atoms/Input
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
345 files changed
+5113
-4727
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
| 72 | + | |
74 | 73 | | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
80 | 98 | | |
81 | 99 | | |
82 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments