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

Return finish reason field & VLLM Refactor #493

Merged
merged 131 commits into from
May 22, 2024

Conversation

CollectiveUnicorn
Copy link
Contributor

@CollectiveUnicorn CollectiveUnicorn commented May 9, 2024

When performing a completion or chat completion return the finish_reason according to the api spec.

  • Adds finish reason in completion/chat completion that mirrors the openai spec
  • Adds token usage in completion/chat completion responses that mirrors the openai spec

Closes #463
Closes #431

Copy link

netlify bot commented May 9, 2024

Deploy Preview for leapfrogai-docs canceled.

Name Link
🔨 Latest commit 9966157
🔍 Latest deploy log https://app.netlify.com/sites/leapfrogai-docs/deploys/664cd436bf4db50008143d93

@CollectiveUnicorn
Copy link
Contributor Author

Conforming to the specs for token length will require updating all of the backends. It assumes that there's the token counting function. TBD if doing that in this commit.

justinthelaw
justinthelaw previously approved these changes May 16, 2024
@CollectiveUnicorn CollectiveUnicorn changed the title Return finish reason field Return finish reason field & VLLM Refactor May 17, 2024
tests/pytest/leapfrogai_api/test_api.py Outdated Show resolved Hide resolved
packages/repeater/chart/Chart.yaml Outdated Show resolved Hide resolved
src/leapfrogai_sdk/llm.py Outdated Show resolved Hide resolved
src/leapfrogai_sdk/llm.py Outdated Show resolved Hide resolved
src/leapfrogai_sdk/llm.py Outdated Show resolved Hide resolved
src/leapfrogai_sdk/llm.py Outdated Show resolved Hide resolved
@CollectiveUnicorn CollectiveUnicorn merged commit a878eee into main May 22, 2024
15 checks passed
@CollectiveUnicorn CollectiveUnicorn deleted the 463-return-finish-reason-field branch May 22, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants