-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] Model registry endpoints #209
base: main
Are you sure you want to change the base?
Conversation
@@ -9,6 +9,14 @@ class NodeServer(BaseModel): | |||
port: int | |||
node_id: str | |||
|
|||
class ModelConfig(BaseModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have a schema called LLMConfig
name: str | ||
model_id: str = Field(..., description="Unique ID for the model, e.g., 'mistralai/Mistral-7B-Instruct-v0.1'") | ||
node_id: str | ||
communication_protocol: str = Field("http", description="Communication protocol (http, ws, grpc)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the schema should look similar to Module. communication protocol should not be related to model.
@@ -134,6 +134,101 @@ async def tool_create_endpoint(tool_input: ToolDeployment) -> ToolDeployment: | |||
""" | |||
return await self.tool_create(tool_input) | |||
|
|||
@router.post("/model/register", response_model=ModelRegistrationResponse) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to create fastapi endpoints for registering things in the hub. the api is built into surrealdb. check how we do it for registering agent, tool modules etc.
Solves issue
Ps.- initial exploration, not yet complete