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

[repo] fix: max_tokens bug fix in completions #1887

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

lilyydu
Copy link
Contributor

@lilyydu lilyydu commented Jul 30, 2024

Linked issues

closes: #1835, #1800

Details

  • max_input_tokens was incorrectly passed in as openai's max_token (for both C# and Python)

Attestation Checklist

  • My code follows the style guidelines of this project

  • I have checked for/fixed spelling, linting, and other errors

  • I have commented my code for clarity

  • I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient)

  • My changes generate no new warnings

  • I have added tests that validates my changes, and provides sufficient test coverage. I have tested with:

    • Local testing
    • E2E testing in Teams
  • New and existing unit tests pass locally with my changes

@lilyydu lilyydu changed the title [C#/PY]: max_tokens bug fix in completions [C#/PY] fix: max_tokens bug fix in completions Jul 30, 2024
@lilyydu lilyydu changed the title [C#/PY] fix: max_tokens bug fix in completions [repo] fix: max_tokens bug fix in completions Jul 30, 2024
@lilyydu lilyydu merged commit 79a006f into main Aug 1, 2024
17 checks passed
@lilyydu lilyydu deleted the lilyydu/max-tokens-bugfix branch August 1, 2024 16:25
@singhk97 singhk97 mentioned this pull request Aug 5, 2024
1 task
singhk97 added a commit that referenced this pull request Aug 5, 2024
## Linked issues

closes: #minor (issue number)

## Details
Changes: 
* #1820
*  #1858 
* #1869 
* #1887 
* Bump samples to use v1.5.0

## Attestation Checklist

- [x] My code follows the style guidelines of this project

- I have checked for/fixed spelling, linting, and other errors
- I have commented my code for clarity
- I have made corresponding changes to the documentation (updating the
doc strings in the code is sufficient)
- My changes generate no new warnings
- I have added tests that validates my changes, and provides sufficient
test coverage. I have tested with:
  - Local testing
  - E2E testing in Teams
- New and existing unit tests pass locally with my changes
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.

[Bug]: max_tokens in openai_model.py wrongly set
2 participants