fix: refer properly to the model for openai chat

Signed-off-by: Casper Guldbech Nielsen <scni@novonordisk.com>
This commit is contained in:
Casper Guldbech Nielsen 2025-05-04 13:01:49 +02:00
parent 9e63c0eef2
commit bcd9bc5dc4
No known key found for this signature in database
GPG Key ID: B004583B52B9A446
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class OpenAIChatClient(OpenAIClientBase, ChatClientBase):
# If a model is provided, override the default model
params["model"] = model or self.model
span.set_attribute("gen_ai.request.model", model)
span.set_attribute("gen_ai.request.model", params["model"])
# Prepare request parameters
params = RequestHandler.process_params(