Commit be0c050
Allow api_base/api_key in embedding config (#2269)
Currently, to have embedding and completion hit two distinct
API base URLs, you have to define the embedding base in the
environment variable and set the completion base in the toml
config. This patch obviates the need to use the environment
at all and allows setting api_base and api_key in the config
for embedding, as well.
Co-authored-by: Clay Fouts <[email protected]>1 parent 82c35f9 commit be0c050
File tree
2 files changed
+6
-0
lines changed- py/core
- base/providers
- providers/embeddings
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments