Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

[Feat] Model registry endpoints #209

wants to merge 1 commit into from

Conversation

adi-kmt
Copy link
Collaborator

@adi-kmt adi-kmt commented Feb 15, 2025

Solves issue

Ps.- initial exploration, not yet complete

@@ -9,6 +9,14 @@ class NodeServer(BaseModel):
port: int
node_id: str

class ModelConfig(BaseModel):
Copy link
Contributor

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)")
Copy link
Contributor

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)
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants