Skip to content

Conversation

@jamesrochabrun
Copy link
Owner

Summary

  • Added support for GPT-5 model family (gpt-5, gpt-5-mini, gpt-5-nano)
  • Introduced reasoning_effort parameter with "minimal", "low", "medium", and "high" options
  • Added verbosity parameter to control output token generation

Changes

  • Updated chat_completion tool schema to include new parameters
  • Enhanced performChatCompletion method to parse and pass reasoning_effort and verbosity
  • Updated README with comprehensive documentation of new features
  • Aligned with SwiftOpenAI 4.3.2 features from PR #164

Test Plan

  • Build package successfully with swift build -c release
  • Test with GPT-5 models: "Use gpt-5 to explain recursion"
  • Test reasoning_effort: "Ask gpt-5 with minimal reasoning effort to write a SQL query"
  • Test verbosity: "Use gpt-5-mini with low verbosity to generate code"
  • Test combined parameters: "Use gpt-5 with high reasoning effort and low verbosity to find bugs"

Example Usage

"Use gpt-5 with high reasoning effort to solve this complex problem"
"Generate concise code with gpt-5-mini using low verbosity"
"Ask gpt-5 with minimal reasoning effort for quick instructions"

🤖 Generated with Claude Code

- Add support for GPT-5 model family (gpt-5, gpt-5-mini, gpt-5-nano)
- Add reasoning_effort parameter with "minimal", "low", "medium", "high" options
- Add verbosity parameter to control output token generation ("low", "medium", "high")
- Update chat_completion tool schema with new parameters
- Update README with GPT-5 models and parameter documentation
- Aligned with SwiftOpenAI 4.3.2 features from PR #164

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jamesrochabrun jamesrochabrun merged commit 3e53c2a into main Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant