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

A couple of small fixes for the 7.1 beta #302

Merged
merged 4 commits into from
Jun 22, 2023
Merged

Conversation

rzubek
Copy link
Contributor

@rzubek rzubek commented Jun 18, 2023

  • One JSON name annotation was missing
  • Small fix for streamed argument string reconstruction: it assumed that the first arguments chunk was going to be an empty string, which has been empirically true so far, but might not be in the future.

kayhantolga and others added 4 commits June 18, 2023 16:47
… and we only perform appending on subsequent blocks.

The prior version (without this change) risked doubling up the first argument string. It doesn't happened in practice, because ChatGPT's first streaming message has an empty arguments string (i.e. `"arguments": ""`), so doubling up an empty string had no effect. But let's fix this just in case their implementation changes.
@kayhantolga kayhantolga merged commit 987089e into betalgo:dev Jun 22, 2023
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