You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requires CEREBRAS_API_KEY (free tier; place in ~/.effgen/.env). All 4 free-tier
models supported: gpt-oss-120b, zai-glm-4.7. Each example prints raw API output.
Example
Demonstrates
cerebras/basic_cerebras.py
Adapter + generate() + token counting
cerebras/cerebras_load_model.py
load_model(..., provider="cerebras") smoke
cerebras/cerebras_streaming.py
generate_stream() token-by-token
cerebras/cerebras_multi_turn.py
Multi-turn chat with message history
cerebras/cerebras_all_models.py
Parallel smoke across all 4 models
cerebras/cerebras_rate_limits.py
RateLimitCoordinator throttling
cerebras/cerebras_cost_tracker.py
CostTracker per-call accounting (free-tier = $0)
cerebras/cerebras_tool_calling.py
Native function-calling (generate_with_tools)
cerebras/cerebras_agent.py
Full Agent + Calculator + DateTimeTool
cerebras/cerebras_hard_agent.py
Hard tasks: compound interest, prime factorization, Fibonacci
OpenAI (cloud)
Requires OPENAI_API_KEY. Examples default to gpt-5.4-nano / gpt-4.1-nano (cheapest tier). Reasoning examples use o4-mini with reasoning_effort.
Example
Demonstrates
openai/basic_chat.py
One-shot generation
openai/multi_turn_chat.py
Multi-turn chat with system prompt
openai/tool_calling.py
Native function-calling on chat models
openai/structured_outputs.py
Strict JSON Schema → Pydantic round-trip
openai/prompt_caching.py
cached_input_tokens surfaced on repeated calls
openai/reasoning_models.py
reasoning_effort on o4-mini (low vs high)
openai/openai_agent.py
Full Agent + effGen Calculator/DateTime tools
openai/caching_and_structured_agent.py
Caching + strict outputs in one agent
openai/native_tools_web_search.py
OpenAIWebSearchTool (Responses API)
openai/native_tools_code_interpreter.py
OpenAICodeInterpreterTool (server-side Python)
openai/native_tools_file_search.py
OpenAIFileSearchTool (RAG over uploaded files)
openai/native_tools_hybrid_agent.py
OpenAI native tools + effGen local tools in one agent
Utilities
File
Description
utils/sweep_model.py
Cross-model compatibility sweep runner
utils/compatibility_matrix.md
Full model compatibility results (11 models x 10 agents)