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: patch streaming API code #1693

Merged
merged 25 commits into from
Aug 29, 2024
Merged

fix: patch streaming API code #1693

merged 25 commits into from
Aug 29, 2024

Commits on Aug 28, 2024

  1. fix: patch stream_steps to properly trigger + return compact JSON ins…

    …tead of JSON with newlines
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    4ffee3d View commit details
    Browse the repository at this point in the history
  2. fix: patch the type hint"

    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    0fef357 View commit details
    Browse the repository at this point in the history
  3. fix: patch type hints

    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    0e4a861 View commit details
    Browse the repository at this point in the history
  4. feat: add dummy Message creation at the top of the stream handler so …

    …that we can pass a MemGPT message ID back in the chunks of our streaming API (previously we hadn't created a Message so there was no Message ID to pass back by the time the streaming started)
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    7b219ff View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9983af7 View commit details
    Browse the repository at this point in the history
  6. feat: add FunctionCallDelta to the MemGPT message schema, since this …

    …was an unsupported data type with the existing set of schemas
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    fcbc428 View commit details
    Browse the repository at this point in the history
  7. feat: support passing ID when doing a dict-to-message Message constru…

    …ctor (TODO this is intended to be used to allow creating a message in agent.py that uses the ID that came inside of the ChatCompletionResponse
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    eef77c0 View commit details
    Browse the repository at this point in the history
  8. fix: fix issues with process_chunk that broke when we added typing to…

    … the chunks/message objects
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    21f501b View commit details
    Browse the repository at this point in the history
  9. fix: allow process_chunk to take extra message IDs and created_ats to…

    … pass through in the chunks from the MemGPT API
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    1fe6b75 View commit details
    Browse the repository at this point in the history
  10. feat: provide option in the openai stream handler determining whether…

    … or not we want to use timestamps/ids from the chunks coming from the server, or from a message we created ahead of time
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    f2e1766 View commit details
    Browse the repository at this point in the history
  11. chore: cleanup

    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    c9e001a View commit details
    Browse the repository at this point in the history
  12. fix: fix pretty bad bug where we were always creating new timestamps …

    …on the return payload from any MemGPT message POST SSE return
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    524a4d6 View commit details
    Browse the repository at this point in the history
  13. chore: cleanup

    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    9bb3224 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0a42461 View commit details
    Browse the repository at this point in the history
  15. fix: this was the final step - we create the Message IDs ahead of tim…

    …e for streaming, but this enables actually persisting them (previously they were just fake throwaways). NOTE: this isn't really done very well since it has a hack assuming the 'message-' prefix on a ChatCompletionResponse means that we intended to use the .id property on the ChatCompletionResponse in subsequent Message creations
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    7d513d5 View commit details
    Browse the repository at this point in the history
  16. fix: patch Python REST client

    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    6466da1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    af1989a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    4935daa View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    fc9b893 View commit details
    Browse the repository at this point in the history
  20. refactor: placate pylance and potentially fix pytest error by reverti…

    …ng back to duplicated code style
    cpacker committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    ffa1ff0 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Configuration menu
    Copy the full SHA
    8e65ba2 View commit details
    Browse the repository at this point in the history
  2. add todo

    cpacker committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    e4f4e8d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a8cb4a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5755123 View commit details
    Browse the repository at this point in the history
  5. fix: attempt to patch test

    cpacker committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    82ae1d9 View commit details
    Browse the repository at this point in the history