You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Vercel AI SDK (typescript)](https://www.tinybird.co/docs/get-data-in/guides/ingest-vercel-ai-sdk)
46
+
2. Instrumentation:
78
47
79
-
## Deployment
48
+
Send your data to Tinybird using the [Events API](https://www.tinybird.co/docs/get-data-in/ingest-apis/events-api). Some examples:
80
49
81
-
- Fork and connect this repository to Vercel.
82
-
- Set the environment variables in Vercel.
83
-
- Configure your `TINYBIRD_HOST` and `TINYBIRD_TOKEN` in the [CI/CD GitHub actions](https://github.com/tinybirdco/llm-performance-tracker/tree/main/.github/workflows) to deploy to Tinybird.
open https://llm-tracker.tinybird.live\?token\=$TINYBIRD_TOKEN
89
61
```
90
-
# workspace ID for multi-tenant JWT tokens
91
-
TINYBIRD_WORKSPACE_ID=
92
-
# workspace admin token for multi-tenant JWT tokens
93
-
TINYBIRD_JWT_SECRET=
94
-
95
-
# Clerk publishable key
96
-
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
97
-
# Clerk secret key
98
-
CLERK_SECRET_KEY=
99
-
# Clerk sign in URL
100
-
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
101
-
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
102
-
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
103
-
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
104
-
```
105
-
106
-
The [middleware](https://github.com/tinybirdco/llm-performance-tracker/blob/main/dashboard/ai-analytics/src/middleware.ts) will get the `org:name` permission from the Clerk user and use it to create a Tinybird JWT token with the `organization` dimension fixed to that value. Read more about Tinybird JWT tokens [here](https://www.tinybird.co/docs/forward/get-started/authentication#json-web-tokens-jwts).
107
-
108
-
[Watch a video of the Clerk + Tinybird JWT token flow](./assets/clerk-tinybird-jwt.mp4)
109
62
110
-
## Mock Data
111
-
112
-
For local testing, generate mock data with the following commands:
The [generate-llm-events.js](https://github.com/tinybirdco/llm-performance-tracker/blob/main/tinybird/mock/generate-llm-events.js) script generates the embeddings.
65
+
See [README.md](https://github.com/tinybirdco/llm-performance-tracker)
0 commit comments