Skip to content

Commit

Permalink
[AIC-py][editor] server v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlastmileai committed Dec 29, 2023
1 parent 8137a6c commit 1e15b81
Show file tree
Hide file tree
Showing 4 changed files with 572 additions and 10 deletions.
1 change: 1 addition & 0 deletions python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ black
flake8
flask-cors
flask[async]
fastapi
google-generativeai
huggingface_hub
hypothesis==6.91.0
Expand Down
3 changes: 2 additions & 1 deletion python/src/aiconfig/editor/server/server_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ class EditServerConfig(core_utils.Record):
server_port: int = 8080
aiconfig_path: Optional[str] = None
log_level: str | int = "INFO"
server_mode: ServerMode
server_mode: ServerMode = ServerMode.PROD
parsers_module_path: str = "aiconfig_model_registry.py"
server_version: str = "v1"

@field_validator("server_mode", mode="before")
def convert_to_mode(cls, value: Any) -> ServerMode: # pylint: disable=no-self-argument
Expand Down
Loading

0 comments on commit 1e15b81

Please sign in to comment.