Skip to content

Commit

Permalink
marketplace changes (#1167)
Browse files Browse the repository at this point in the history
Enabling Marketplace for models
  • Loading branch information
jedan2506 authored Sep 1, 2023
1 parent 48e68cf commit e5fe0a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion superagi/controllers/models_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from superagi.apm.call_log_helper import CallLogHelper
from superagi.models.models import Models
from superagi.models.models_config import ModelsConfig
from superagi.config.config import get_config
from fastapi_sqlalchemy import db
import logging
from pydantic import BaseModel
Expand Down Expand Up @@ -121,7 +122,7 @@ def get_knowledge_list(page: int = 0, organisation=Depends(get_user_organisation

@router.get("/marketplace/list/{page}", status_code=200)
def get_marketplace_knowledge_list(page: int = 0):
organisation_id = 2
organisation_id = int(get_config("MARKETPLACE_ORGANISATION_ID"))
page_size = 16

query = db.session.query(Models).filter(Models.org_id == organisation_id)
Expand Down
6 changes: 4 additions & 2 deletions superagi/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
from superagi.helper.encyption_helper import decrypt_data
import requests, logging

# marketplace_url = "https://app.superagi.com/api"
marketplace_url = "http://localhost:8001"
marketplace_url = "https://app.superagi.com/api"
# marketplace_url = "http://localhost:8001"


class Models(DBBaseModel):
"""
Represents a Model record in the database
Expand Down

0 comments on commit e5fe0a5

Please sign in to comment.