Skip to content

Commit 07cf642

Browse files
committed
System Prompt Override
1 parent 61e8c68 commit 07cf642

3 files changed

Lines changed: 1747 additions & 9866 deletions

File tree

app/api/trade/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ async function tradeHandler(): Promise<NextResponse> {
1919

2020
const { content, toolResults } = await callAgent(
2121
accountId,
22+
// WTF - Now we are passing the system prompt twice...
2223
context.systemPrompt,
2324
agentId,
25+
"", // evmAddress
26+
"", // suiAddress
27+
"", // nearAddress
28+
context.systemPrompt,
2429
);
2530

2631
const quoteResult = (toolResults as ToolResult[]).find(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"@ai-sdk/openai": "^1.3.24",
1616
"@ai-sdk/ui-utils": "1.2.11",
17-
"@bitte-ai/agent-sdk": "0.4.1-beta.5",
17+
"@bitte-ai/agent-sdk": "0.4.2-beta.0",
1818
"@near-js/transactions": "^2.3.0",
1919
"ai": "^3.4.33",
2020
"clsx": "^2.1.1",

0 commit comments

Comments
 (0)