o1-preview vs GPT-4o for complex reasoning - worth the cost?
I've been testing o1-preview for research-level reasoning tasks and comparing it with GPT-4o. The cost difference is significant ($15/M input for o1 vs $2.50/M for GPT-4o), so I want to make sure it's justified.
My test cases include:
Preliminary findings:
My current strategy: use GPT-4o as default, escalate to o1 only for tasks that require multi-step logical reasoning. Anyone else using a similar tiered approach?
You need to pass the proxy directly to the httpx client:
import httpx
from openai import OpenAIclient = OpenAI(
http_client=httpx.Client(
proxy="http://proxy.corp.example.com:8080",
verify=False # Only if your proxy uses self-signed certs
)
)
The environment variables aren't picked up by the SDK's default httpx client configuration.
This worked perfectly. For async usage:
client = AsyncOpenAI(
http_client=httpx.AsyncClient(
proxy="http://proxy.corp.example.com:8080"
)
)
Log in to reply to this topic.