Retrieving Model Name for Chat Completion via GraphQL Query
Hi I am trying to get the model name for the chat completion Now using the graphql I am not finding ways to get the correct way to retrieve the model name The task is to calculate the total cost for the completion based on the prompts and model the query goes like this: query ProjectChatCompletionModelNames($id: ID!) { project: node(id: $id) { ... on Project { spans(first: 2) { edges { node { id name metadata attributes tokenCountPrompt tokenCountCompletion tokenCountTotal cumulativeTokenCountTotal propagatedStatusCode } } } } } } For testing I am retrieving the only first 2 values but for production I have around 1000's of data and attributes field has the llm.model_name and I am trying to retrieve the model name only from attributes but could not find any. Also I could get the model name using dictionary on my client side rendering like using python but the problem being for retrieving 1000's of data it takes time so querying directly the model should help retrieving the data faster. Anyone could help me if not this way then other way around. Thanks for replying 馃槆
