Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: support finish reason "length" #216

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

odinuv
Copy link
Contributor

@odinuv odinuv commented Feb 18, 2025

The reason is real https://community.openai.com/t/bug-in-api-response-finish-reason-field/287212 and is even mentioned here

* finish_reason: 'stop'|'length'|'tool_calls'|'content_filter',
Plus added some tests for the ResponseConverter

@chr-hertel
Copy link
Member

Hi @odinuv & welcome to the project! :)

Good catch and I'm happy to merge as soon as the pipeline is green - I guess php vendor/bin/php-cs-fixer fix should help with that

@chr-hertel chr-hertel merged commit aff83f9 into php-llm:main Feb 18, 2025
7 checks passed
@chr-hertel
Copy link
Member

Thank you @odinuv 🙏

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.

2 participants