Skip to content

Commit

Permalink
Offset fix (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
luciferlinx101 authored Jul 28, 2023
1 parent 1faca30 commit 1181bcb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion superagi/controllers/knowledge_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
router = APIRouter()

@router.get("/marketplace/details/{knowledge_id}")
def get_marketplace_knowledge_configs(knowledge_id: int, Authorize: AuthJWT = Depends(check_auth)):
def get_marketplace_knowledge_configs(knowledge_id: int):
knowledge_configs = db.session.query(KnowledgeConfigs).filter(KnowledgeConfigs.knowledge_id == knowledge_id).all()
return knowledge_configs

1 change: 0 additions & 1 deletion superagi/llms/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def get_models(self):
models = openai.Model.list()
models = [model["id"] for model in models["data"]]
models_supported = ['gpt-4', 'gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-4-32k']
print("CHECK THIS1", models)
models = [model for model in models if model in models_supported]
return models
except Exception as exception:
Expand Down

0 comments on commit 1181bcb

Please sign in to comment.