-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
OPIK-796: Fix issue with LLM setup and stream shutdown #1108
OPIK-796: Fix issue with LLM setup and stream shutdown #1108
Conversation
…ora/OPIK-796_implement_clickhouse_user_logs
…ora/OPIK-796_implement_clickhouse_user_logs
…ttps://github.com/comet-ml/opik into thiagohora/OPIK-796_implement_clickhouse_user_logs
…o thiagohora/OPIK-796_implement_get_log_api
…lication lifecycle
…ithub.com/comet-ml/opik into thiagohora/OPIK-796_implement_get_log_api
62ad07f
to
a64dd61
Compare
9f0bdf9
to
9d86e17
Compare
|
||
@Provides | ||
@Singleton | ||
public LlmProviderFactory llmProviderFactory(LlmProviderApiKeyService llmProviderApiKeyService) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public LlmProviderFactory llmProviderFactory(LlmProviderApiKeyService llmProviderApiKeyService) { | |
public LlmProviderFactory llmProviderFactory(@NonNull LlmProviderApiKeyService llmProviderApiKeyService) { |
return createInstance(llmProviderApiKeyService); | ||
} | ||
|
||
public LlmProviderFactory createInstance(LlmProviderApiKeyService llmProviderApiKeyService) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public LlmProviderFactory createInstance(LlmProviderApiKeyService llmProviderApiKeyService) { | |
public LlmProviderFactory createInstance(@NonNull LlmProviderApiKeyService llmProviderApiKeyService) { |
} | ||
|
||
@Override | ||
public LlmProviderService getService(String apiKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public LlmProviderService getService(String apiKey) { | |
public LlmProviderService getService(@NonNull String apiKey) { |
Other functions in this class as well
} | ||
|
||
@Override | ||
public LlmProviderService getService(String apiKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public LlmProviderService getService(String apiKey) { | |
public LlmProviderService getService(@NonNull String apiKey) { |
Same for other functions in this class
@ParameterizedTest | ||
@MethodSource("credentials") | ||
@DisplayName("get logs per rule evaluators: when api key is present, then return proper response") | ||
void getLogsPerRuleEvaluators__whenSessionTokenIsPresent__thenReturnProperResponse( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two getLogsPerRuleEvaluators__whenSessionTokenIsPresent__thenReturnProperResponse
almost copypasted tests (only difference seems to be workspace). If you really need both it's worth incapsulating into function and reuse it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will see what can be reused and add the validations in the next iteration
Details
Add tests to new logs endpoint and this PR also unveiled the following issues:
Issues
OPIK-796