Upload folder using huggingface_hub
Browse files- README.md +0 -1
- src/magentic_ui/magentic_ui_config.py +7 -2
README.md
CHANGED
|
@@ -466,4 +466,3 @@ Privacy information can be found at <https://go.microsoft.com/fwlink/?LinkId=521
|
|
| 466 |
|
| 467 |
Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel, or otherwise.
|
| 468 |
|
| 469 |
-
# Dummy change
|
|
|
|
| 466 |
|
| 467 |
Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel, or otherwise.
|
| 468 |
|
|
|
src/magentic_ui/magentic_ui_config.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
from typing import Any, ClassVar, Dict, List, Literal, Optional, Union
|
| 2 |
|
| 3 |
from autogen_core import ComponentModel
|
|
@@ -39,14 +40,18 @@ class ModelClientConfigs(BaseModel):
|
|
| 39 |
default_client_config: ClassVar[Dict[str, Any]] = {
|
| 40 |
"provider": "OpenAIChatCompletionClient",
|
| 41 |
"config": {
|
| 42 |
-
"model": "
|
|
|
|
|
|
|
| 43 |
},
|
| 44 |
"max_retries": 10,
|
| 45 |
}
|
| 46 |
default_action_guard_config: ClassVar[Dict[str, Any]] = {
|
| 47 |
"provider": "OpenAIChatCompletionClient",
|
| 48 |
"config": {
|
| 49 |
-
"model": "
|
|
|
|
|
|
|
| 50 |
},
|
| 51 |
"max_retries": 10,
|
| 52 |
}
|
|
|
|
| 1 |
+
import os
|
| 2 |
from typing import Any, ClassVar, Dict, List, Literal, Optional, Union
|
| 3 |
|
| 4 |
from autogen_core import ComponentModel
|
|
|
|
| 40 |
default_client_config: ClassVar[Dict[str, Any]] = {
|
| 41 |
"provider": "OpenAIChatCompletionClient",
|
| 42 |
"config": {
|
| 43 |
+
"model": "alias-large",
|
| 44 |
+
"base_url": "https://api.helmholtz-blablador.fz-juelich.de/v1",
|
| 45 |
+
"api_key": os.environ.get("BLABLADOR_API_KEY"),
|
| 46 |
},
|
| 47 |
"max_retries": 10,
|
| 48 |
}
|
| 49 |
default_action_guard_config: ClassVar[Dict[str, Any]] = {
|
| 50 |
"provider": "OpenAIChatCompletionClient",
|
| 51 |
"config": {
|
| 52 |
+
"model": "alias-fast",
|
| 53 |
+
"base_url": "https://api.helmholtz-blablador.fz-juelich.de/v1",
|
| 54 |
+
"api_key": os.environ.get("BLABLADOR_API_KEY"),
|
| 55 |
},
|
| 56 |
"max_retries": 10,
|
| 57 |
}
|