Commit ef8a308
committed
feature #1125 [Platform] Decouple Platform Token Usage handling from Agent by introducing new interface (chr-hertel)
This PR was merged into the main branch.
Discussion
----------
[Platform] Decouple Platform Token Usage handling from Agent by introducing new interface
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| Docs? | no
| Issues |
| License | MIT
- [x] adopt bundle: remove config
- [x] adopt tests in platform
Mistral is more or less flaky anyways
<img width="1527" height="902" alt="image" src="https://github.com/user-attachments/assets/27141fb4-ff57-4b94-a42c-b825573a91d8" />
Commits
-------
286acc5 Decouple Platform Token Usage handling from Agent by introducing new interfaceFile tree
79 files changed
+953
-1237
lines changed- docs/bundles
- examples
- anthropic
- deepseek
- gemini
- mistral
- openai
- perplexity
- vertexai
- src
- ai-bundle
- config
- src
- tests/DependencyInjection
- platform
- src
- Bridge
- Anthropic
- Azure/Meta
- Bedrock
- Anthropic
- Meta
- Nova
- Cartesia
- Cerebras
- Decart
- DeepSeek
- DockerModelRunner
- Completions
- Embeddings
- ElevenLabs
- Gemini
- Embeddings
- Gemini
- Generic
- Completions
- Embeddings
- HuggingFace
- Mistral
- Embeddings
- Llm
- Ollama
- OpenAi
- DallE
- Embeddings
- Gpt
- TextToSpeech
- Whisper
- Perplexity
- Replicate
- Scaleway
- Embeddings
- Llm
- TransformersPhp
- VertexAi
- Embeddings
- Gemini
- Voyage
- Result
- StructuredOutput
- Test
- TokenUsage
- tests
- Bridge
- Anthropic
- Gemini
- Mistral
- OpenAi
- Perplexity
- VertexAi
- Metadata
- store/tests/Double
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
79 files changed
+953
-1237
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | 476 | | |
482 | | - | |
483 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
899 | 898 | | |
900 | 899 | | |
901 | 900 | | |
902 | | - | |
903 | | - | |
| 901 | + | |
| 902 | + | |
904 | 903 | | |
905 | 904 | | |
906 | 905 | | |
| |||
932 | 931 | | |
933 | 932 | | |
934 | 933 | | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | 934 | | |
949 | 935 | | |
950 | 936 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
0 commit comments