Skip to content

Commit ae7bc2d

Browse files
committed
Optimize list view control.
1 parent 3a3b462 commit ae7bc2d

1 file changed

Lines changed: 86 additions & 0 deletions

File tree

PSOpenAI.Format.ps1xml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,92 @@
6868
</TableRowEntries>
6969
</TableControl>
7070
</View>
71+
<View>
72+
<Name>PSOpenAI.Response</Name>
73+
<ViewSelectedBy>
74+
<TypeName>PSOpenAI.Response</TypeName>
75+
</ViewSelectedBy>
76+
<ListControl>
77+
<ListEntries>
78+
<ListEntry>
79+
<ListItems>
80+
<ListItem>
81+
<PropertyName>id</PropertyName>
82+
</ListItem>
83+
<ListItem>
84+
<PropertyName>object</PropertyName>
85+
</ListItem>
86+
<ListItem>
87+
<PropertyName>created_at</PropertyName>
88+
</ListItem>
89+
<ListItem>
90+
<PropertyName>status</PropertyName>
91+
</ListItem>
92+
<ListItem>
93+
<PropertyName>error</PropertyName>
94+
<ItemSelectionCondition>
95+
<ScriptBlock>$null -ne $_.error</ScriptBlock>
96+
</ItemSelectionCondition>
97+
</ListItem>
98+
<ListItem>
99+
<PropertyName>incomplete_details</PropertyName>
100+
<ItemSelectionCondition>
101+
<ScriptBlock>$null -ne $_.incomplete_details</ScriptBlock>
102+
</ItemSelectionCondition>
103+
</ListItem>
104+
<ListItem>
105+
<Label>usage</Label>
106+
<ScriptBlock>$_.usage | select input_tokens, output_tokens, total_tokens</ScriptBlock>
107+
</ListItem>
108+
<ListItem>
109+
<PropertyName>user</PropertyName>
110+
<ItemSelectionCondition>
111+
<ScriptBlock>$null -ne $_.user</ScriptBlock>
112+
</ItemSelectionCondition>
113+
</ListItem>
114+
<ListItem>
115+
<PropertyName>metadata</PropertyName>
116+
<ItemSelectionCondition>
117+
<ScriptBlock>$_.metadata.Keys.Count -gt 0</ScriptBlock>
118+
</ItemSelectionCondition>
119+
</ListItem>
120+
<ListItem>
121+
<PropertyName>model</PropertyName>
122+
</ListItem>
123+
<ListItem>
124+
<PropertyName>instructions</PropertyName>
125+
</ListItem>
126+
<ListItem>
127+
<Label>output</Label>
128+
<ScriptBlock>$_.Output.type</ScriptBlock>
129+
</ListItem>
130+
<ListItem>
131+
<PropertyName>LastUserMessage</PropertyName>
132+
</ListItem>
133+
<ListItem>
134+
<PropertyName>output_text</PropertyName>
135+
</ListItem>
136+
<ListItem>
137+
<PropertyName>StructuredOutputs</PropertyName>
138+
<ItemSelectionCondition>
139+
<ScriptBlock>$_.StructuredOutputs.Count -gt 0</ScriptBlock>
140+
</ItemSelectionCondition>
141+
</ListItem>
142+
<ListItem>
143+
<Label>History</Label>
144+
<ScriptBlock>$_.History.type</ScriptBlock>
145+
<ItemSelectionCondition>
146+
<ScriptBlock>$_.History.Count -gt 0</ScriptBlock>
147+
</ItemSelectionCondition>
148+
</ListItem>
149+
<ListItem>
150+
<PropertyName>previous_response_id</PropertyName>
151+
</ListItem>
152+
</ListItems>
153+
</ListEntry>
154+
</ListEntries>
155+
</ListControl>
156+
</View>
71157
<View>
72158
<Name>PSOpenAI.Response.Message</Name>
73159
<ViewSelectedBy>

0 commit comments

Comments
 (0)