Commit 7e0cb87
committed
refactor!: improve provider resolution
Improve the way how different providers are resolved and configured. Make sure
the output and input processing is more consistent between providers by
providing common interface that providers must implement.
Improvements:
- Change embeddings field to embed for clarity
- Add proper types for provider inputs and outputs
- Make provider resolution more generic
- Make common provider interface clearer
- Add types for model and agent configs
- Make prepare_input and prepare_output more consistent
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>1 parent d27ebd2 commit 7e0cb87
3 files changed
Lines changed: 199 additions & 136 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
401 | 405 | | |
402 | 406 | | |
403 | 407 | | |
| |||
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 429 | | |
434 | 430 | | |
435 | 431 | | |
| |||
0 commit comments