├── .dockerignore ├── .env.example ├── .flake8 ├── .gitattributes ├── .gitignore ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── assistants_api ├── Dockerfile ├── app │ ├── __init__.py │ ├── lib │ │ ├── db │ │ │ ├── __init__.py │ │ │ ├── crud.py │ │ │ ├── database.py │ │ │ ├── models.py │ │ │ └── schemas.py │ │ ├── fs │ │ │ ├── actions.py │ │ │ ├── schemas.py │ │ │ └── store.py │ │ ├── mb │ │ │ ├── actions.py │ │ │ └── broker.py │ │ └── wv │ │ │ ├── actions.py │ │ │ └── client.py │ ├── main.py │ ├── models │ │ ├── __init__.py │ │ └── thread.py │ ├── routers │ │ ├── __init__.py │ │ ├── assistant_router.py │ │ ├── file_router.py │ │ ├── message_router.py │ │ ├── ops │ │ │ ├── run_ops_router.py │ │ │ ├── runsteps_ops_router.py │ │ │ └── web_retrieval_ops_router.py │ │ ├── run_router.py │ │ ├── runsteps_router.py │ │ ├── threads_router.py │ │ └── vectorstore_router.py │ └── utils │ │ ├── __init__.py │ │ ├── crawling.py │ │ ├── document_loader.py │ │ └── tranformers.py ├── assets │ ├── code-reference.txt │ ├── my_information.txt │ ├── openai-openapi-dereferenced.json │ ├── openai-openapi.json │ ├── openapi-generator.py │ ├── test.pdf │ └── test.txt ├── openai-1.26.0-py3-none-any.whl ├── requirements.txt └── tests │ ├── ops │ ├── test_runs_ops.py │ ├── test_runsteps_ops.py │ └── test_web_crawling_ops.py │ ├── test_assistant.py │ ├── test_files.py │ ├── test_messages.py │ ├── test_run_function_calling.py │ ├── test_run_steps.py │ ├── test_runs.py │ ├── test_threads.py │ └── test_vector_store.py ├── docker-compose.dev.yml ├── examples └── compounding_demo.ipynb ├── pyproject.toml ├── run_executor_worker ├── Dockerfile ├── openai-1.26.0-py3-none-any.whl ├── requirements.txt ├── scripts │ └── watcher.py └── src │ ├── __init__.py │ ├── actions │ ├── file_search.py │ ├── function_calling_tool.py │ └── web_retrieval.py │ ├── agents │ ├── coala.py │ └── router.py │ ├── constants.py │ ├── consumer.py │ ├── data_models │ ├── __init__.py │ ├── run.py │ └── runstep.py │ ├── run_executor │ ├── __init__.py │ └── main.py │ └── utils │ ├── __init__.py │ ├── coala.py │ ├── context.py │ ├── openai_clients.py │ ├── ops_api_handler.py │ ├── tools.py │ └── weaviate_utils.py └── rundev.sh /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/.env.example -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/.flake8 -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/README.md -------------------------------------------------------------------------------- /assistants_api/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/Dockerfile -------------------------------------------------------------------------------- /assistants_api/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assistants_api/app/lib/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assistants_api/app/lib/db/crud.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/db/crud.py -------------------------------------------------------------------------------- /assistants_api/app/lib/db/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/db/database.py -------------------------------------------------------------------------------- /assistants_api/app/lib/db/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/db/models.py -------------------------------------------------------------------------------- /assistants_api/app/lib/db/schemas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/db/schemas.py -------------------------------------------------------------------------------- /assistants_api/app/lib/fs/actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/fs/actions.py -------------------------------------------------------------------------------- /assistants_api/app/lib/fs/schemas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/fs/schemas.py -------------------------------------------------------------------------------- /assistants_api/app/lib/fs/store.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/fs/store.py -------------------------------------------------------------------------------- /assistants_api/app/lib/mb/actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/mb/actions.py -------------------------------------------------------------------------------- /assistants_api/app/lib/mb/broker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/mb/broker.py -------------------------------------------------------------------------------- /assistants_api/app/lib/wv/actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/wv/actions.py -------------------------------------------------------------------------------- /assistants_api/app/lib/wv/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/lib/wv/client.py -------------------------------------------------------------------------------- /assistants_api/app/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/main.py -------------------------------------------------------------------------------- /assistants_api/app/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assistants_api/app/models/thread.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/models/thread.py -------------------------------------------------------------------------------- /assistants_api/app/routers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assistants_api/app/routers/assistant_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/assistant_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/file_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/file_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/message_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/message_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/ops/run_ops_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/ops/run_ops_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/ops/runsteps_ops_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/ops/runsteps_ops_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/ops/web_retrieval_ops_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/ops/web_retrieval_ops_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/run_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/run_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/runsteps_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/runsteps_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/threads_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/threads_router.py -------------------------------------------------------------------------------- /assistants_api/app/routers/vectorstore_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/routers/vectorstore_router.py -------------------------------------------------------------------------------- /assistants_api/app/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assistants_api/app/utils/crawling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/utils/crawling.py -------------------------------------------------------------------------------- /assistants_api/app/utils/document_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/utils/document_loader.py -------------------------------------------------------------------------------- /assistants_api/app/utils/tranformers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/app/utils/tranformers.py -------------------------------------------------------------------------------- /assistants_api/assets/code-reference.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/assets/code-reference.txt -------------------------------------------------------------------------------- /assistants_api/assets/my_information.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/assets/my_information.txt -------------------------------------------------------------------------------- /assistants_api/assets/openai-openapi-dereferenced.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/assets/openai-openapi-dereferenced.json -------------------------------------------------------------------------------- /assistants_api/assets/openai-openapi.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/assets/openai-openapi.json -------------------------------------------------------------------------------- /assistants_api/assets/openapi-generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/assets/openapi-generator.py -------------------------------------------------------------------------------- /assistants_api/assets/test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/assets/test.pdf -------------------------------------------------------------------------------- /assistants_api/assets/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/assets/test.txt -------------------------------------------------------------------------------- /assistants_api/openai-1.26.0-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/openai-1.26.0-py3-none-any.whl -------------------------------------------------------------------------------- /assistants_api/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/requirements.txt -------------------------------------------------------------------------------- /assistants_api/tests/ops/test_runs_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/ops/test_runs_ops.py -------------------------------------------------------------------------------- /assistants_api/tests/ops/test_runsteps_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/ops/test_runsteps_ops.py -------------------------------------------------------------------------------- /assistants_api/tests/ops/test_web_crawling_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/ops/test_web_crawling_ops.py -------------------------------------------------------------------------------- /assistants_api/tests/test_assistant.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/test_assistant.py -------------------------------------------------------------------------------- /assistants_api/tests/test_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/test_files.py -------------------------------------------------------------------------------- /assistants_api/tests/test_messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/test_messages.py -------------------------------------------------------------------------------- /assistants_api/tests/test_run_function_calling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/test_run_function_calling.py -------------------------------------------------------------------------------- /assistants_api/tests/test_run_steps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/test_run_steps.py -------------------------------------------------------------------------------- /assistants_api/tests/test_runs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/test_runs.py -------------------------------------------------------------------------------- /assistants_api/tests/test_threads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/test_threads.py -------------------------------------------------------------------------------- /assistants_api/tests/test_vector_store.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/assistants_api/tests/test_vector_store.py -------------------------------------------------------------------------------- /docker-compose.dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/docker-compose.dev.yml -------------------------------------------------------------------------------- /examples/compounding_demo.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/examples/compounding_demo.ipynb -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.black] 2 | line-length = 79 3 | skip-string-normalization = true -------------------------------------------------------------------------------- /run_executor_worker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/Dockerfile -------------------------------------------------------------------------------- /run_executor_worker/openai-1.26.0-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/openai-1.26.0-py3-none-any.whl -------------------------------------------------------------------------------- /run_executor_worker/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/requirements.txt -------------------------------------------------------------------------------- /run_executor_worker/scripts/watcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/scripts/watcher.py -------------------------------------------------------------------------------- /run_executor_worker/src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /run_executor_worker/src/actions/file_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/actions/file_search.py -------------------------------------------------------------------------------- /run_executor_worker/src/actions/function_calling_tool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/actions/function_calling_tool.py -------------------------------------------------------------------------------- /run_executor_worker/src/actions/web_retrieval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/actions/web_retrieval.py -------------------------------------------------------------------------------- /run_executor_worker/src/agents/coala.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/agents/coala.py -------------------------------------------------------------------------------- /run_executor_worker/src/agents/router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/agents/router.py -------------------------------------------------------------------------------- /run_executor_worker/src/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/constants.py -------------------------------------------------------------------------------- /run_executor_worker/src/consumer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/consumer.py -------------------------------------------------------------------------------- /run_executor_worker/src/data_models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /run_executor_worker/src/data_models/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/data_models/run.py -------------------------------------------------------------------------------- /run_executor_worker/src/data_models/runstep.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/data_models/runstep.py -------------------------------------------------------------------------------- /run_executor_worker/src/run_executor/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /run_executor_worker/src/run_executor/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/run_executor/main.py -------------------------------------------------------------------------------- /run_executor_worker/src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /run_executor_worker/src/utils/coala.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/utils/coala.py -------------------------------------------------------------------------------- /run_executor_worker/src/utils/context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/utils/context.py -------------------------------------------------------------------------------- /run_executor_worker/src/utils/openai_clients.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/utils/openai_clients.py -------------------------------------------------------------------------------- /run_executor_worker/src/utils/ops_api_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/utils/ops_api_handler.py -------------------------------------------------------------------------------- /run_executor_worker/src/utils/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/utils/tools.py -------------------------------------------------------------------------------- /run_executor_worker/src/utils/weaviate_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/run_executor_worker/src/utils/weaviate_utils.py -------------------------------------------------------------------------------- /rundev.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenGPTs-platform/assistants-api/HEAD/rundev.sh --------------------------------------------------------------------------------