File tree Expand file tree Collapse file tree 6 files changed +4
-147
lines changed Expand file tree Collapse file tree 6 files changed +4
-147
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ GOOGLE_API_KEY=
68
68
# For using Albert API (French Sovereign AI)
69
69
ALBERT_API_KEY =
70
70
ALBERT_API_URL =
71
- ALBERT_MODEL =
72
71
73
72
# For MariaDB store. Server defined in compose.yaml
74
73
MARIADB_URI = pdo-mysql://[email protected] :3309/my_database
Original file line number Diff line number Diff line change 11
11
``` bash
12
12
export ALBERT_API_KEY=" your-api-key"
13
13
export ALBERT_API_URL=" https://your-albert-instance.com"
14
- export ALBERT_MODEL=" albert-7b-v2" # or your configured model
15
14
```
16
15
17
16
## Examples
@@ -28,17 +27,6 @@ php examples/albert/rag.php
28
27
```
29
28
Shows how to use Albert's built-in RAG capabilities with document context.
30
29
31
- ### Streaming
32
- ``` bash
33
- php examples/albert/stream.php
34
- ```
35
- Demonstrates real-time streaming responses from Albert API.
36
-
37
- ### Tool Calling
38
- ``` bash
39
- php examples/albert/toolcall.php
40
- ```
41
- Shows how to use function/tool calling with Albert API.
42
30
43
31
## Configuration
44
32
@@ -63,6 +51,6 @@ $platform = PlatformFactory::create(
63
51
64
52
## Notes
65
53
66
- - The model name depends on your Albert deployment configuration
54
+ - Albert will route requests to the appropriate backend based on your deployment configuration
67
55
- Albert supports various model backends (OpenAI, vLLM, HuggingFace TEI)
68
56
- Check your Albert instance documentation for available models and features
Original file line number Diff line number Diff line change 31
31
baseUrl: rtrim ((string ) $ albertApiUrl , '/ ' ).'/v1/ ' , // Ensure proper URL format
32
32
);
33
33
34
- // Use the model name provided by your Albert instance
35
- // This could be a custom model or one of the supported backends
36
- $ model = new GPT ($ _ENV ['ALBERT_MODEL ' ] ?? 'albert-7b-v2 ' );
34
+ // Use a model name - Albert will route to the appropriate backend
35
+ $ model = new GPT ('gpt-4o ' );
37
36
38
37
$ chain = new Chain ($ platform , $ model );
39
38
Original file line number Diff line number Diff line change 29
29
baseUrl: rtrim ((string ) $ albertApiUrl , '/ ' ).'/v1/ ' ,
30
30
);
31
31
32
- $ model = new GPT ($ _ENV [ ' ALBERT_MODEL ' ] ?? ' albert-7b-v2 ' );
32
+ $ model = new GPT (' gpt-4o ' );
33
33
$ chain = new Chain ($ platform , $ model );
34
34
35
35
// Albert API supports RAG out of the box
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments