Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmicsuperintelligence/optillm
/ functions
Functions
1,129 in github.com/algorithmicsuperintelligence/optillm
⨍
Functions
1,129
◇
Types & classes
178
↳
Endpoints
25
Method
chat_completions_create
(self, **kwargs)
tests/test_mars_imo25.py:270
Method
chat_completions_create
(self, **kwargs)
tests/test_mars_parallel.py:223
Method
chat_completions_create
(self, **kwargs)
tests/test_mars_parallel.py:318
Method
chat_completions_create
(self, **kwargs)
tests/test_mars_parallel.py:400
Method
chat_completions_create
(self, **kwargs)
tests/test_mars_parallel.py:488
Function
chat_with_optillm
(message, history)
optillm/server.py:1294
Function
check_api_key
()
optillm/server.py:684
Function
client
Create OpenAI client for optillm proxy with local inference
tests/test_api_compatibility.py:20
Method
client
Lazy initialization of OpenAI client
optillm/plugins/proxy/client.py:39
Method
count_tokens
(self, text)
tests/test_json_plugin.py:31
Method
create
(self, **kwargs)
tests/test_approaches.py:70
Method
create
(model: str, messages: List[Dict[str, str]], **kwargs)
optillm/litellm_wrapper.py:31
Method
create
Create a chat completion with OpenAI-compatible parameters
optillm/inference.py:1783
Method
create
Create completion with appropriate timeout handling
optillm/plugins/deep_research_plugin.py:53
Method
encode
(self, text)
tests/test_reasoning_simple.py:80
Method
evaluate_completeness
Evaluate if the current research is complete or needs more information Returns (is_complete, list_of_missing_aspects)
optillm/plugins/deep_research/research_engine.py:548
Function
execute_code_in_process
(code: str)
optillm/z3_solver.py:64
Function
extract_answer
(final_state: str)
optillm/pvg.py:125
Method
failing_processor
(requests)
tests/test_batching.py:115
Function
fetch_chunk_summary
(client, model, chunk, query, system_prompt)
optillm/plugins/longcepo/mapreduce.py:84
Function
fetch_collapse_response
(client, model, docs, query, system_prompt)
optillm/plugins/longcepo/mapreduce.py:230
Function
fetch_map_response
(client, model, chunk, query, system_prompt, summary)
optillm/plugins/longcepo/mapreduce.py:117
Method
final_consensus_check
Final check to determine if consensus has been reached
optillm/mars/verifier.py:327
Method
forward
(self, input_ids, attention_mask, effort)
scripts/train_optillm_classifier.py:122
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
optillm/inference.py:695
Method
forward
(self, input_ids, attention_mask, effort)
optillm/plugins/router_plugin.py:42
Method
generate
Generate text using MLX
optillm/inference.py:340
Method
generate_focused_queries
Generate focused search queries to address missing aspects
optillm/plugins/deep_research/research_engine.py:600
Function
generate_single_plan
(i)
optillm/cepo/cepo.py:358
Function
get_answer_after_thinking
Extract only the content after </think> tag Args: text: Text with thinking tags Returns: Content after </think> tag, or
optillm/mars/answer_extraction.py:220
Function
get_answer_type
Get the answer type for a problem
scripts/imo25_reference.py:303
Function
get_expected_answer
Get the expected answer for a problem
scripts/imo25_reference.py:298
Method
get_index
(value: str)
optillm/plugins/privacy_plugin.py:54
Function
get_last_processed_index
Get the index of the last processed problem.
scripts/eval_aime_benchmark.py:469
Function
get_math_test_messages
Get math test messages for reasoning validation
tests/test_utils.py:81
Method
get_metrics
Get the current metrics.
optillm/plugins/spl/strategy.py:425
Method
get_model_adapters
Get list of adapter IDs loaded for a specific model.
optillm/inference.py:911
Function
get_modules_by_category
Categorize modules by their primary focus.
optillm/plugins/deepthink/reasoning_modules.py:211
Function
get_modules_by_ids
Get specific modules by their IDs.
optillm/plugins/deepthink/reasoning_modules.py:228
Method
get_pattern_vectors
Get all steering vectors for a specific reasoning pattern. Args: pattern: The reasoning pattern
optillm/autothink/steering.py:241
Method
get_similar_strategies
Find strategies similar to a query using TF-IDF similarity.
optillm/plugins/spl/strategy.py:288
Method
get_stats
Get statistics about conversation logging
optillm/conversation_logger.py:220
Function
health
()
optillm/server.py:979
Method
improve_solution_async
Async wrapper for solution improvement
optillm/mars/verifier.py:279
Method
is_high_complexity
Determine if a query is high complexity. Args: text: The query text threshold: Confidence threshold
optillm/autothink/classifier.py:122
Function
is_mlx_available
Check if MLX is available (macOS only)
tests/test_utils.py:29
Method
is_mlx_model
Check if model should use MLX
optillm/inference.py:614
Method
is_thought_switch
Check if adding this token creates a thought switch sequence.
optillm/thinkdeeper_mlx.py:62
Method
iterative_improvement
Run iterative improvement on solutions that failed verification
optillm/mars/verifier.py:198
Method
list
()
optillm/litellm_wrapper.py:43
Function
log_error
Log an error using the global logger instance
optillm/conversation_logger.py:263
Function
log_provider_call
Log a provider call using the global logger instance
optillm/conversation_logger.py:257
Method
log_stderr
()
optillm/plugins/mcp_plugin.py:434
Method
log_stdout
()
optillm/plugins/mcp_plugin.py:443
Method
make_request
(index)
tests/test_conversation_logging_server.py:384
Method
mcts
(self, root_state: str)
optillm/rstar.py:175
Method
mock_batch_processor
(requests)
tests/test_batching.py:291
Method
mock_processor
Mock batch processor that returns simple responses
tests/test_batching.py:39
Method
mock_processor
(requests)
tests/test_batching.py:370
Method
model_dump
(self)
tests/test_conversation_logging_approaches.py:52
Function
normalize_ordered_tuple
Helper function to normalize ordered tuples/lists of numbers.
scripts/eval_math500_benchmark.py:376
Method
operate
Anonymize the input text.
optillm/plugins/privacy_plugin.py:23
Method
operator_name
(self)
optillm/plugins/privacy_plugin.py:68
Method
operator_type
(self)
optillm/plugins/privacy_plugin.py:71
Method
optimize_generation_params
Optimize generation parameters based on prompt characteristics
optillm/inference.py:1455
Method
process
Process messages with AutoThink's controlled thinking. Args: messages: List of message dictionaries
optillm/autothink/processor.py:213
Method
process_batch
Process a batch of prompts with all optimizations
optillm/inference.py:1515
Function
process_batch_requests
Process a batch of requests using true batching when possible Args: batch_requests: List of request data dic
optillm/server.py:1121
Function
proxy
()
optillm/server.py:698
Function
proxy_models
()
optillm/server.py:944
Function
replace_placeholder
(match)
optillm/plugins/privacy_plugin.py:92
Method
replacer
(match)
optillm/plugins/proxy/config.py:98
Method
reset
Reset internal state for new trace.
optillm/deepconf/confidence.py:36
Function
run
Deep Research plugin implementing TTD-DR (Test-Time Diffusion Deep Researcher) This plugin orchestrates web search, URL fetching, and me
optillm/plugins/deep_research_plugin.py:111
Function
run
(system_prompt: str, initial_query: str, client, model: str)
optillm/plugins/memory_plugin.py:93
Function
run
(system_prompt: str, initial_query: str, client, model: str)
optillm/plugins/longcepo_plugin.py:15
Function
run
Main entry point for the Deep Think plugin. Combines SELF-DISCOVER reasoning structure discovery with uncertainty-routed chain-of-t
optillm/plugins/deepthink_plugin.py:17
Function
run
(system_prompt, initial_query: str, client=None, model=None)
optillm/plugins/readurls_plugin.py:115
Function
run
Generic majority voting implementation.
optillm/plugins/majority_voting_plugin.py:76
Function
run
Main plugin execution function.
optillm/plugins/json_plugin.py:136
Function
run
Main Chain of Code execution function.
optillm/plugins/coc_plugin.py:285
Function
run
(system_prompt: str, initial_query: str, client, model: str)
optillm/plugins/privacy_plugin.py:121
Function
run
Main entry point for the GenSelect plugin. Generates multiple candidate solutions and uses LLM comparison to select the best one.
optillm/plugins/genselect_plugin.py:135
Function
run
Main proxy plugin entry point. Supports three usage modes: 1. Standalone proxy: model="proxy-gpt-4" 2. Wrapping approach: extra_
optillm/plugins/proxy_plugin.py:97
Function
run
Plugin entry point for System Prompt Learning. Args: system_prompt: The system prompt initial_query: The user's query
optillm/plugins/spl_plugin.py:22
Function
run
Web search plugin that uses Chrome to search Google and return results Args: system_prompt: System prompt for the conversation
optillm/plugins/web_search_plugin.py:562
Function
run
Main plugin execution function called by OptILLM Args: system_prompt: System prompt initial_query: User query cl
optillm/plugins/mcp_plugin.py:795
Function
run
(system_prompt: str, initial_query: str, client, model: str)
optillm/plugins/executecode_plugin.py:67
Function
run
(system_prompt, initial_query, client, model, **kwargs)
optillm/plugins/router_plugin.py:92
Function
run_approach
(approach_name: str, system_prompt: str, query: str, client, model: str)
tests/test.py:69
Function
run_longcepo
Executes the full LongCePO multi-stage pipeline to answer a complex query from long context. The pipeline includes: - Normalizing the
optillm/plugins/longcepo/main.py:15
Function
run_performance_comparison
Run a performance comparison between sequential and batch processing This function can be called separately for benchmarking
tests/test_batching.py:399
Function
run_single_completion
(i)
optillm/cepo/cepo.py:676
Method
search
Perform a search using the managed browser session with automatic recovery
optillm/plugins/web_search_plugin.py:57
Method
select
(self, providers: List)
optillm/plugins/proxy/routing.py:30
Method
select
(self, providers: List)
optillm/plugins/proxy/routing.py:72
Method
select
(self, providers: List)
optillm/plugins/proxy/routing.py:100
Method
send_notification
Log and forward notifications
optillm/plugins/mcp_plugin.py:249
Method
send_request
(request_id)
tests/test_batching.py:76
Method
send_request
(prompt_data)
tests/test_batching.py:302
← previous
next →
801–900 of 1,129, ranked by callers