lfqian commited on
Commit
c913234
·
1 Parent(s): 80cac11

fix: add model filter for asset requests storage

Browse files

- Use InvestorAgent/2025-08-01/BTC/gpt_4.1 row for storage
- Add model='gpt_4.1' to all Supabase queries

src/views/AddAssetView.vue CHANGED
@@ -226,6 +226,7 @@ export default {
226
  .eq('agent_name', 'InvestorAgent')
227
  .eq('date', '2025-08-01')
228
  .eq('asset', 'BTC')
 
229
  .single()
230
 
231
  if (fetchError) throw fetchError
@@ -258,6 +259,7 @@ export default {
258
  .eq('agent_name', 'InvestorAgent')
259
  .eq('date', '2025-08-01')
260
  .eq('asset', 'BTC')
 
261
 
262
  if (updateError) throw updateError
263
 
 
226
  .eq('agent_name', 'InvestorAgent')
227
  .eq('date', '2025-08-01')
228
  .eq('asset', 'BTC')
229
+ .eq('model', 'gpt_4.1')
230
  .single()
231
 
232
  if (fetchError) throw fetchError
 
259
  .eq('agent_name', 'InvestorAgent')
260
  .eq('date', '2025-08-01')
261
  .eq('asset', 'BTC')
262
+ .eq('model', 'gpt_4.1')
263
 
264
  if (updateError) throw updateError
265
 
src/views/AssetRequestsView.vue CHANGED
@@ -1,3 +1,4 @@
 
1
  <template>
2
  <div class="page-container">
3
  <div class="title-container">
@@ -108,7 +109,7 @@ export default {
108
  .from('trading_decisions')
109
  .select('asset_requests_data')
110
  .eq('agent_name', 'InvestorAgent')
111
- .eq('date', '2025-08-01')
112
  .eq('asset', 'BTC')
113
  .single()
114
 
@@ -167,6 +168,7 @@ export default {
167
  .eq('agent_name', 'InvestorAgent')
168
  .eq('date', '2025-08-01')
169
  .eq('asset', 'BTC')
 
170
 
171
  if (updateError) throw updateError
172
 
 
1
+
2
  <template>
3
  <div class="page-container">
4
  <div class="title-container">
 
109
  .from('trading_decisions')
110
  .select('asset_requests_data')
111
  .eq('agent_name', 'InvestorAgent')
112
+ .eq('date', '2025-10-25')
113
  .eq('asset', 'BTC')
114
  .single()
115
 
 
168
  .eq('agent_name', 'InvestorAgent')
169
  .eq('date', '2025-08-01')
170
  .eq('asset', 'BTC')
171
+ .eq('model', 'gpt_4.1')
172
 
173
  if (updateError) throw updateError
174