[Typo]: Some typos about GenAI Response in SemanticConvetion
CherishCai opened this issue · comments
Are there any typos?
openlit/sdk/python/src/openlit/semcov/__init__.py
Lines 62 to 68 in 5d2d205
maybe change L66-L68
GEN_AI_RESPONSE_IMAGE_SIZE = "gen_ai.request.image_size"
GEN_AI_RESPONSE_IMAGE_QUALITY = "gen_ai.request.image_quality"
GEN_AI_RESPONSE_IMAGE_STYLE = "gen_ai.request.image_style"
to
GEN_AI_RESPONSE_IMAGE_SIZE = "gen_ai.response.image_size"
GEN_AI_RESPONSE_IMAGE_QUALITY = "gen_ai.response.image_quality"
GEN_AI_RESPONSE_IMAGE_STYLE = "gen_ai.response.image_style"
Hey @CherishCai , Good catch. I
think it needs to be the other way round. the values are correct, the variable names are wrong as its collected from the request metadata itself. So it should be
GEN_AI_REQUEST_IMAGE_SIZE = "gen_ai.request.image_size"
GEN_AI_REQUEST_IMAGE_QUALITY = "gen_ai.request.image_quality"
GEN_AI_REQUEST_IMAGE_STYLE = "gen_ai.request.image_style"
and since this is a variable change, the naming would need to change across the entire SDK code. Lemme know if you wanna contribute it as a PR?
@patcher9 I wanna contribute it as a PR.
And these codes need to be moved to line 55( under GEN_AI_REQUEST_TRAINING_FILE = "gen_ai.request.training_file"
), Is that right?
Ill keep this issue open for now until GEN_AI_REQUEST_IMAGE_QUALITY
and GEN_AI_REQUEST_IMAGE_STYLE
are also updated. Would you also wanna PR these two up?
yeah this is good to close. I mistakenly just went with the PR title.
Thanks @CherishCai as always!!