MCPcopy Index your code

hub / github.com/algorithmicsuperintelligence/optillm / endpoints

Endpoints25 in github.com/algorithmicsuperintelligence/optillm

Routehealth
app.route('/health', methods=['GET'])
optillm/server.py:None
Routeproxy
app.route('/v1/chat/completions', methods=['POST'])
optillm/server.py:None
Routeproxy_models
app.route('/v1/models', methods=['GET'])
optillm/server.py:None
Routetest_azure_client_receives_http_client
patch.dict(os.environ, {'AZURE_OPENAI_API_KEY': 'test-key', 'AZURE_API_VERSION': '2024-02-15-preview', 'AZURE_
tests/test_ssl_config.py:None
Routetest_cerebras_client_receives_http_client
patch.dict(os.environ, {'CEREBRAS_API_KEY': 'test-key', 'OPTILLM_API_KEY': ''}, clear=False)
tests/test_ssl_config.py:None
Routetest_complex_class_based_approaches_logging
patch('optillm.z3_solver.multiprocessing.get_context')
tests/test_conversation_logging_approaches.py:None
Routetest_connect_sse_success
patch('optillm.plugins.mcp_plugin.sse_client')
tests/test_mcp_plugin.py:None
Routetest_error_handling
patch('optillm.plugins.json_plugin.JSONGenerator')
tests/test_json_plugin.py:None
Routetest_generate_json_new_api
patch('optillm.plugins.json_plugin.outlines.from_transformers')
tests/test_json_plugin.py:None
Routetest_httpx_client_custom_cert_path
patch.dict(os.environ, {'OPENAI_API_KEY': 'test-key'})
tests/test_ssl_config.py:None
Routetest_httpx_client_ssl_verify_disabled
patch.dict(os.environ, {'OPENAI_API_KEY': 'test-key'})
tests/test_ssl_config.py:None
Routetest_httpx_client_ssl_verify_enabled
patch.dict(os.environ, {'OPENAI_API_KEY': 'test-key'})
tests/test_ssl_config.py:None
Routetest_inference_pipeline_unchanged
unittest.skipIf(not os.getenv("OPTILLM_API_KEY"), "Requires local inference")
tests/test_batching.py:None
Routetest_info_when_custom_cert_used
patch.dict(os.environ, {'OPENAI_API_KEY': 'test-key', 'OPTILLM_API_KEY': ''}, clear=False)
tests/test_ssl_config.py:None
Routetest_json_generator_init
patch('optillm.plugins.json_plugin.outlines.from_transformers')
tests/test_json_plugin.py:None
Routetest_mars_uses_thread_pool
patch('optillm.mars.mars.ThreadPoolExecutor')
tests/test_mars_parallel.py:None
Routetest_openai_client_receives_http_client
patch.dict(os.environ, {'OPENAI_API_KEY': 'test-key', 'OPTILLM_API_KEY': ''}, clear=False)
tests/test_ssl_config.py:None
Routetest_parse_json_schema_to_pydantic
patch('optillm.plugins.json_plugin.outlines.from_transformers')
tests/test_json_plugin.py:None
Routetest_pytorch_batch_processing
unittest.skipIf(not os.getenv("OPTILLM_API_KEY"), "Requires local inference")
tests/test_batching.py:None
Routetest_readurls_plugin_custom_cert_path
patch('optillm.plugins.readurls_plugin.requests.get')
tests/test_ssl_config.py:None
Routetest_readurls_plugin_ssl_verify_disabled
patch('optillm.plugins.readurls_plugin.requests.get')
tests/test_ssl_config.py:None
Routetest_readurls_plugin_ssl_verify_enabled
patch('optillm.plugins.readurls_plugin.requests.get')
tests/test_ssl_config.py:None
Routetest_run_function_with_schema
patch('optillm.plugins.json_plugin.JSONGenerator')
tests/test_json_plugin.py:None
Routetest_stdio_command_not_found
patch('optillm.plugins.mcp_plugin.find_executable')
tests/test_mcp_plugin.py:None
Routetest_warning_when_ssl_disabled
patch.dict(os.environ, {'OPENAI_API_KEY': 'test-key'})
tests/test_ssl_config.py:None