Commit 32abdfe
committed
[feat] Enhance AI SDK integration with new model factories and task adapters
- Added ModelInstanceFactory to manage language, embedding, and image model registrations.
- Introduced V3TaskAdapters for executing tasks via V3 models, supporting text generation and embedding tasks.
- Updated AiJob to utilize new task execution paths, enhancing compatibility with V3 models.
- Registered AI SDK providers for worker execution, enabling streamlined model access and task processing.
- Enhanced package dependencies to include new AI SDK packages for improved functionality.1 parent 6b057b4 commit 32abdfe
28 files changed
Lines changed: 1325 additions & 69 deletions
File tree
- packages
- ai-provider
- src
- ai-sdk
- registry
- hf-transformers
- model
- registry
- openai/provider
- tf-mediapipe
- model
- registry
- ai
- src
- job
- model
- task/adapters
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
59 | 75 | | |
60 | 76 | | |
61 | 77 | | |
| |||
64 | 80 | | |
65 | 81 | | |
66 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
67 | 87 | | |
68 | 88 | | |
69 | 89 | | |
70 | 90 | | |
71 | | - | |
| 91 | + | |
| 92 | + | |
72 | 93 | | |
73 | 94 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments