├── .flake8 ├── .gitignore ├── LICENSE ├── README.md ├── examples ├── chat_client │ ├── async_chat_client.py │ ├── async_stream_chat_client.py │ ├── chat_client.py │ ├── standard_logger_chat_client.py │ └── stream_chat_client.py ├── legacy_chat_completion │ ├── chat_completion.py │ ├── chat_completion_async.py │ ├── chat_completion_async_stream.py │ ├── chat_completion_functions.py │ ├── chat_completion_functions_rest.py │ ├── chat_completion_rest.py │ └── chat_completion_stream.py └── legacy_completion │ ├── completion.py │ ├── completion_async.py │ ├── completion_async_stream.py │ ├── completion_langchain.py │ ├── completion_rest.py │ ├── completion_rest_async.py │ ├── completion_stream.py │ ├── in_memory_logging.py │ ├── log_to_file.py │ └── standard_logging.py ├── mona_openai ├── __init__.py ├── analysis │ ├── analyzer.py │ ├── privacy.py │ ├── profanity.py │ ├── textual.py │ └── util.py ├── endpoints │ ├── chat_completion.py │ ├── completion.py │ ├── endpoint_wrapping.py │ └── wrapping_getter.py ├── exceptions.py ├── loggers │ ├── __init__.py │ ├── file_logger.py │ ├── in_memory_logging.py │ ├── logger.py │ ├── mona_logger │ │ ├── mona_client.py │ │ └── mona_logger.py │ └── standard_logging.py ├── mona_openai_client.py ├── mona_openai_create.py ├── mona_openai_legacy.py ├── mona_openai_logging.py └── util │ ├── async_util.py │ ├── func_util.py │ ├── general_consts.py │ ├── object_util.py │ ├── openai_util.py │ ├── stream_util.py │ ├── tokens_util.py │ ├── typing_util.py │ └── validation_util.py ├── pyproject.toml ├── requirements.txt └── tests ├── __init__.py ├── mocks ├── mock_mona_client.py └── mock_openai.py ├── test_chat_completion.py ├── test_completion.py ├── test_privacy_analyzer.py └── test_textual_analyzer.py /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | per-file-ignores = __init__.py:F401,F403 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/README.md -------------------------------------------------------------------------------- /examples/chat_client/async_chat_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/chat_client/async_chat_client.py -------------------------------------------------------------------------------- /examples/chat_client/async_stream_chat_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/chat_client/async_stream_chat_client.py -------------------------------------------------------------------------------- /examples/chat_client/chat_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/chat_client/chat_client.py -------------------------------------------------------------------------------- /examples/chat_client/standard_logger_chat_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/chat_client/standard_logger_chat_client.py -------------------------------------------------------------------------------- /examples/chat_client/stream_chat_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/chat_client/stream_chat_client.py -------------------------------------------------------------------------------- /examples/legacy_chat_completion/chat_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_chat_completion/chat_completion.py -------------------------------------------------------------------------------- /examples/legacy_chat_completion/chat_completion_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_chat_completion/chat_completion_async.py -------------------------------------------------------------------------------- /examples/legacy_chat_completion/chat_completion_async_stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_chat_completion/chat_completion_async_stream.py -------------------------------------------------------------------------------- /examples/legacy_chat_completion/chat_completion_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_chat_completion/chat_completion_functions.py -------------------------------------------------------------------------------- /examples/legacy_chat_completion/chat_completion_functions_rest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_chat_completion/chat_completion_functions_rest.py -------------------------------------------------------------------------------- /examples/legacy_chat_completion/chat_completion_rest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_chat_completion/chat_completion_rest.py -------------------------------------------------------------------------------- /examples/legacy_chat_completion/chat_completion_stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_chat_completion/chat_completion_stream.py -------------------------------------------------------------------------------- /examples/legacy_completion/completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/completion.py -------------------------------------------------------------------------------- /examples/legacy_completion/completion_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/completion_async.py -------------------------------------------------------------------------------- /examples/legacy_completion/completion_async_stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/completion_async_stream.py -------------------------------------------------------------------------------- /examples/legacy_completion/completion_langchain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/completion_langchain.py -------------------------------------------------------------------------------- /examples/legacy_completion/completion_rest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/completion_rest.py -------------------------------------------------------------------------------- /examples/legacy_completion/completion_rest_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/completion_rest_async.py -------------------------------------------------------------------------------- /examples/legacy_completion/completion_stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/completion_stream.py -------------------------------------------------------------------------------- /examples/legacy_completion/in_memory_logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/in_memory_logging.py -------------------------------------------------------------------------------- /examples/legacy_completion/log_to_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/log_to_file.py -------------------------------------------------------------------------------- /examples/legacy_completion/standard_logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/examples/legacy_completion/standard_logging.py -------------------------------------------------------------------------------- /mona_openai/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/__init__.py -------------------------------------------------------------------------------- /mona_openai/analysis/analyzer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/analysis/analyzer.py -------------------------------------------------------------------------------- /mona_openai/analysis/privacy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/analysis/privacy.py -------------------------------------------------------------------------------- /mona_openai/analysis/profanity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/analysis/profanity.py -------------------------------------------------------------------------------- /mona_openai/analysis/textual.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/analysis/textual.py -------------------------------------------------------------------------------- /mona_openai/analysis/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/analysis/util.py -------------------------------------------------------------------------------- /mona_openai/endpoints/chat_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/endpoints/chat_completion.py -------------------------------------------------------------------------------- /mona_openai/endpoints/completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/endpoints/completion.py -------------------------------------------------------------------------------- /mona_openai/endpoints/endpoint_wrapping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/endpoints/endpoint_wrapping.py -------------------------------------------------------------------------------- /mona_openai/endpoints/wrapping_getter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/endpoints/wrapping_getter.py -------------------------------------------------------------------------------- /mona_openai/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/exceptions.py -------------------------------------------------------------------------------- /mona_openai/loggers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/loggers/__init__.py -------------------------------------------------------------------------------- /mona_openai/loggers/file_logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/loggers/file_logger.py -------------------------------------------------------------------------------- /mona_openai/loggers/in_memory_logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/loggers/in_memory_logging.py -------------------------------------------------------------------------------- /mona_openai/loggers/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/loggers/logger.py -------------------------------------------------------------------------------- /mona_openai/loggers/mona_logger/mona_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/loggers/mona_logger/mona_client.py -------------------------------------------------------------------------------- /mona_openai/loggers/mona_logger/mona_logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/loggers/mona_logger/mona_logger.py -------------------------------------------------------------------------------- /mona_openai/loggers/standard_logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/loggers/standard_logging.py -------------------------------------------------------------------------------- /mona_openai/mona_openai_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/mona_openai_client.py -------------------------------------------------------------------------------- /mona_openai/mona_openai_create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/mona_openai_create.py -------------------------------------------------------------------------------- /mona_openai/mona_openai_legacy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/mona_openai_legacy.py -------------------------------------------------------------------------------- /mona_openai/mona_openai_logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/mona_openai_logging.py -------------------------------------------------------------------------------- /mona_openai/util/async_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/async_util.py -------------------------------------------------------------------------------- /mona_openai/util/func_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/func_util.py -------------------------------------------------------------------------------- /mona_openai/util/general_consts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/general_consts.py -------------------------------------------------------------------------------- /mona_openai/util/object_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/object_util.py -------------------------------------------------------------------------------- /mona_openai/util/openai_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/openai_util.py -------------------------------------------------------------------------------- /mona_openai/util/stream_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/stream_util.py -------------------------------------------------------------------------------- /mona_openai/util/tokens_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/tokens_util.py -------------------------------------------------------------------------------- /mona_openai/util/typing_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/typing_util.py -------------------------------------------------------------------------------- /mona_openai/util/validation_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/mona_openai/util/validation_util.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/requirements.txt -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/mocks/mock_mona_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/tests/mocks/mock_mona_client.py -------------------------------------------------------------------------------- /tests/mocks/mock_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/tests/mocks/mock_openai.py -------------------------------------------------------------------------------- /tests/test_chat_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/tests/test_chat_completion.py -------------------------------------------------------------------------------- /tests/test_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/tests/test_completion.py -------------------------------------------------------------------------------- /tests/test_privacy_analyzer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/tests/test_privacy_analyzer.py -------------------------------------------------------------------------------- /tests/test_textual_analyzer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monalabs/mona-openai/HEAD/tests/test_textual_analyzer.py --------------------------------------------------------------------------------