|
1 | 1 | { |
2 | | - "flags": 256, |
3 | | - "name": "ChatCompletion", |
4 | | - "kind": "SPAN_KIND_INTERNAL", |
5 | | - "attributes": [ |
| 2 | + "flags": 256, |
| 3 | + "name": "ChatCompletion", |
| 4 | + "kind": "SPAN_KIND_INTERNAL", |
| 5 | + "attributes": [ |
6 | 6 | { |
7 | | - "key": "llm.system", |
8 | | - "value": { |
9 | | - "stringValue": "openai" |
| 7 | + "key": "llm.system", |
| 8 | + "value": { |
| 9 | + "stringValue": "openai" |
10 | 10 | } |
11 | 11 | }, |
12 | 12 | { |
13 | | - "key": "input.value", |
14 | | - "value": { |
15 | | - "stringValue": "{\"messages\": [{\"content\": \"Hello!\", \"role\": \"user\"}], \"model\": \"gpt-5-nano\"}" |
| 13 | + "key": "input.value", |
| 14 | + "value": { |
| 15 | + "stringValue": "{\"messages\": [{\"content\": \"Hello!\", \"role\": \"user\"}], \"model\": \"gpt-5-nano\"}" |
16 | 16 | } |
17 | 17 | }, |
18 | 18 | { |
19 | | - "key": "input.mime_type", |
20 | | - "value": { |
21 | | - "stringValue": "application/json" |
| 19 | + "key": "input.mime_type", |
| 20 | + "value": { |
| 21 | + "stringValue": "application/json" |
22 | 22 | } |
23 | 23 | }, |
24 | 24 | { |
25 | | - "key": "output.value", |
26 | | - "value": { |
27 | | - "stringValue": "{\"id\":\"chatcmpl-CM9n9OhFOl4lSSFwarLEIMnPrNWSP\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"Hi there! How can I help today? I can answer questions, brainstorm ideas, write or edit text, explain concepts, help with coding, plan projects, translate languages, or just chat. What would you like to do? If you’re not sure, tell me a topic you’re curious about and I’ll give you a quick rundown.\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":[]},\"content_filter_results\":{}}],\"created\":1759396891,\"model\":\"gpt-5-nano-2025-08-07\",\"object\":\"chat.completion\",\"system_fingerprint\":null,\"usage\":{\"completion_tokens\":271,\"prompt_tokens\":8,\"total_tokens\":279,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":192,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}},\"prompt_filter_results\":[{\"content_filter_results\":{},\"prompt_index\":0}]}" |
| 25 | + "key": "output.value", |
| 26 | + "value": { |
| 27 | + "stringValue": "{\"id\":\"chatcmpl-CM9n9OhFOl4lSSFwarLEIMnPrNWSP\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"Hi there! How can I help today? I can answer questions, brainstorm ideas, write or edit text, explain concepts, help with coding, plan projects, translate languages, or just chat. What would you like to do? If you’re not sure, tell me a topic you’re curious about and I’ll give you a quick rundown.\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":[]},\"content_filter_results\":{}}],\"created\":1759396891,\"model\":\"gpt-5-nano-2025-08-07\",\"object\":\"chat.completion\",\"system_fingerprint\":null,\"usage\":{\"completion_tokens\":271,\"prompt_tokens\":8,\"total_tokens\":279,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":192,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}},\"prompt_filter_results\":[{\"content_filter_results\":{},\"prompt_index\":0}]}" |
28 | 28 | } |
29 | 29 | }, |
30 | 30 | { |
31 | | - "key": "output.mime_type", |
32 | | - "value": { |
33 | | - "stringValue": "application/json" |
| 31 | + "key": "output.mime_type", |
| 32 | + "value": { |
| 33 | + "stringValue": "application/json" |
34 | 34 | } |
35 | 35 | }, |
36 | 36 | { |
37 | | - "key": "llm.invocation_parameters", |
38 | | - "value": { |
39 | | - "stringValue": "{\"model\": \"gpt-5-nano\"}" |
| 37 | + "key": "llm.invocation_parameters", |
| 38 | + "value": { |
| 39 | + "stringValue": "{\"model\": \"gpt-5-nano\"}" |
40 | 40 | } |
41 | 41 | }, |
42 | 42 | { |
43 | | - "key": "llm.input_messages.0.message.role", |
44 | | - "value": { |
45 | | - "stringValue": "user" |
| 43 | + "key": "llm.input_messages.0.message.role", |
| 44 | + "value": { |
| 45 | + "stringValue": "user" |
46 | 46 | } |
47 | 47 | }, |
48 | 48 | { |
49 | | - "key": "llm.input_messages.0.message.content", |
50 | | - "value": { |
51 | | - "stringValue": "Hello!" |
| 49 | + "key": "llm.input_messages.0.message.content", |
| 50 | + "value": { |
| 51 | + "stringValue": "Hello!" |
52 | 52 | } |
53 | 53 | }, |
54 | 54 | { |
55 | | - "key": "llm.model_name", |
56 | | - "value": { |
57 | | - "stringValue": "gpt-5-nano-2025-08-07" |
| 55 | + "key": "llm.model_name", |
| 56 | + "value": { |
| 57 | + "stringValue": "gpt-5-nano-2025-08-07" |
58 | 58 | } |
59 | 59 | }, |
60 | 60 | { |
61 | | - "key": "llm.token_count.total", |
62 | | - "value": { |
63 | | - "intValue": "279" |
| 61 | + "key": "llm.token_count.total", |
| 62 | + "value": { |
| 63 | + "intValue": "279" |
64 | 64 | } |
65 | 65 | }, |
66 | 66 | { |
67 | | - "key": "llm.token_count.prompt", |
68 | | - "value": { |
69 | | - "intValue": "8" |
| 67 | + "key": "llm.token_count.prompt", |
| 68 | + "value": { |
| 69 | + "intValue": "8" |
70 | 70 | } |
71 | 71 | }, |
72 | 72 | { |
73 | | - "key": "llm.token_count.completion", |
74 | | - "value": { |
75 | | - "intValue": "271" |
| 73 | + "key": "llm.token_count.completion", |
| 74 | + "value": { |
| 75 | + "intValue": "271" |
76 | 76 | } |
77 | 77 | }, |
78 | 78 | { |
79 | | - "key": "llm.token_count.prompt_details.cache_read", |
80 | | - "value": { |
81 | | - "intValue": "0" |
| 79 | + "key": "llm.token_count.prompt_details.cache_read", |
| 80 | + "value": { |
| 81 | + "intValue": "0" |
82 | 82 | } |
83 | 83 | }, |
84 | 84 | { |
85 | | - "key": "llm.token_count.prompt_details.audio", |
86 | | - "value": { |
87 | | - "intValue": "0" |
| 85 | + "key": "llm.token_count.prompt_details.audio", |
| 86 | + "value": { |
| 87 | + "intValue": "0" |
88 | 88 | } |
89 | 89 | }, |
90 | 90 | { |
91 | | - "key": "llm.token_count.completion_details.reasoning", |
92 | | - "value": { |
93 | | - "intValue": "192" |
| 91 | + "key": "llm.token_count.completion_details.reasoning", |
| 92 | + "value": { |
| 93 | + "intValue": "192" |
94 | 94 | } |
95 | 95 | }, |
96 | 96 | { |
97 | | - "key": "llm.token_count.completion_details.audio", |
98 | | - "value": { |
99 | | - "intValue": "0" |
| 97 | + "key": "llm.token_count.completion_details.audio", |
| 98 | + "value": { |
| 99 | + "intValue": "0" |
100 | 100 | } |
101 | 101 | }, |
102 | 102 | { |
103 | | - "key": "llm.output_messages.0.message.role", |
104 | | - "value": { |
105 | | - "stringValue": "assistant" |
| 103 | + "key": "llm.output_messages.0.message.role", |
| 104 | + "value": { |
| 105 | + "stringValue": "assistant" |
106 | 106 | } |
107 | 107 | }, |
108 | 108 | { |
109 | | - "key": "llm.output_messages.0.message.content", |
110 | | - "value": { |
111 | | - "stringValue": "Hi there! How can I help today? I can answer questions, brainstorm ideas, write or edit text, explain concepts, help with coding, plan projects, translate languages, or just chat. What would you like to do? If you’re not sure, tell me a topic you’re curious about and I’ll give you a quick rundown." |
| 109 | + "key": "llm.output_messages.0.message.content", |
| 110 | + "value": { |
| 111 | + "stringValue": "Hi there! How can I help today? I can answer questions, brainstorm ideas, write or edit text, explain concepts, help with coding, plan projects, translate languages, or just chat. What would you like to do? If you’re not sure, tell me a topic you’re curious about and I’ll give you a quick rundown." |
112 | 112 | } |
113 | 113 | }, |
114 | 114 | { |
115 | | - "key": "openinference.span.kind", |
116 | | - "value": { |
117 | | - "stringValue": "LLM" |
| 115 | + "key": "openinference.span.kind", |
| 116 | + "value": { |
| 117 | + "stringValue": "LLM" |
118 | 118 | } |
119 | 119 | } |
120 | 120 | ], |
121 | | - "status": { |
122 | | - "code": "STATUS_CODE_OK" |
| 121 | + "status": { |
| 122 | + "code": "STATUS_CODE_OK" |
123 | 123 | } |
124 | 124 | } |
0 commit comments