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

Add reply chat completion client #4096

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

MohMaz
Copy link
Contributor

@MohMaz MohMaz commented Nov 8, 2024

Why are these changes needed?

  • Adds a ReplayChatCompletionClient client so we can mimic LLM API calls locally with predefined set of responses with some native implementation of usage logic

Related issue number

Closes #3622

Checks

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
@MohMaz MohMaz self-assigned this Nov 8, 2024
Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
@MohMaz MohMaz marked this pull request as ready for review November 8, 2024 08:06
Copy link
Collaborator

@ekzhu ekzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great start! Can we move this to autogen-ext package under autogen_ext.models so we can use it across tests and examples in all packages.

@MohMaz MohMaz requested a review from ekzhu November 8, 2024 20:30
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.

A replay mock model client for testing
2 participants