Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Feb 1, 2025

Make o3-mini work with glama


Important

Adds conditional temperature support in GlamaHandler for o3-mini model compatibility in glama.ts.

  • Behavior:
    • Introduces supportsTemperature() in GlamaHandler to check if the model supports temperature settings.
    • Adjusts createMessage and completePrompt methods to conditionally set temperature based on supportsTemperature().
  • Functions:
    • Adds supportsTemperature() to return false for models starting with openai/o3-mini.
  • Misc:
    • Refactors request options creation in createMessage for clarity.

This description was created by Ellipsis for 0cd1642. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Feb 1, 2025

⚠️ No Changeset found

Latest commit: 0050daf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mrubens mrubens merged commit 3d67133 into main Feb 1, 2025
5 checks passed
@mrubens mrubens deleted the more_o3_mini_fixes branch February 1, 2025 04:22
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.

3 participants