Skip to content

Add OpenAI support (gpt-4o, gpt-4o-mini, gpt-3.5-turbo) #2

@sajosam

Description

@sajosam

Summary

SpawnVerse currently ships with Groq/LLaMA as the default provider.
This issue adds first-class OpenAI support so users can run any
SpawnVerse task on GPT-4o, GPT-4o-mini, or GPT-3.5-turbo with a
single config change and zero modifications to their task code.

What is already done

The multi-provider _ProviderClient wrapper is merged into core/engine.py.
The _complete_openai() method exists. The agent stdlib think() function
already has the OpenAI branch. Auto-detection of gpt-* model names works.

What still needs doing

  • Integration test _complete_openai() on all three models
  • Confirm resp.usage.total_tokens tracking works as expected
  • Verify rate-limit retry (HTTP 429 → exponential backoff)
  • Uncomment openai>=1.30.0 in requirements.txt
  • Uncomment the OpenAI block in examples/providers/run.py
  • Update README model table with GPT rows

Acceptance criteria

  • All three GPT models complete a full SpawnVerse run
  • Token budget is enforced correctly across agents
  • HTTP 429 triggers the retry path and recovers

Skills needed

Python · OpenAI SDK · basic pytest

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions