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

[WIP Observability]: add image model observation #368

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

Conversation

PolarishT
Copy link
Contributor

Describe what this PR does / why we need it

  1. support image-model use observation.

Does this pull request fix one issue?

#223

Describe how to verify it

image

@Cirilla-zmh
Copy link
Collaborator

Currently, several image models do not support synchronous calls, so we have to provide an asynchronous implementation.
look #29

Copy link
Collaborator

@Cirilla-zmh Cirilla-zmh left a comment

Choose a reason for hiding this comment

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

I have left several comments need to be considered.

community/function-calling/README.md Show resolved Hide resolved
while (attempt < maxAttempts) {
if (!isTaskCompleted(getResultResponse)) {
getResultResponse = getImageGenTask(taskId);
Thread.sleep(10000L);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like here is a change of default behavior, which should be full discussed and documented.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using a spring-retry-template to control the entire lifecycle, may be a good solution.

Signed-off-by: PolarishT <[email protected]>
@PolarishT
Copy link
Contributor Author

Currently, several image models do not support synchronous calls, so we have to provide an asynchronous implementation. look #29

👌

Signed-off-by: PolarishT <[email protected]>
@PolarishT
Copy link
Contributor Author

cc @Cirilla-zmh

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