How to integrate Vercel AI with Lytix
With a couple of lines of code, you can start using Lytix to manage your evaluation and usage via the Vercel AI SDK.
Prerequisite First create a lytix account here
🇪🇺 Note You will need to use https://eu.api.lytix.co/proxy/v1/anthropic
if you are in the EU region.
🇪🇺 Note You will need to use https://eu.api.lytix.co/proxy/v1/openai
if you are in the EU region.
🇪🇺 Note You will need to use https://eu.api.lytix.co/proxy/v2/groq
if you are in the EU region.
When querying you can pass the following headers to the client:
workflowName
- The name of the workflow to create (see workflow setup for more information)userId
- The id of the usersessionId
- The id of the session to group calls togethercacheTTL
- The number of seconds to cache the response for. Please see caching to setup your cache.How to integrate Vercel AI with Lytix
With a couple of lines of code, you can start using Lytix to manage your evaluation and usage via the Vercel AI SDK.
Prerequisite First create a lytix account here
🇪🇺 Note You will need to use https://eu.api.lytix.co/proxy/v1/anthropic
if you are in the EU region.
🇪🇺 Note You will need to use https://eu.api.lytix.co/proxy/v1/openai
if you are in the EU region.
🇪🇺 Note You will need to use https://eu.api.lytix.co/proxy/v2/groq
if you are in the EU region.
When querying you can pass the following headers to the client:
workflowName
- The name of the workflow to create (see workflow setup for more information)userId
- The id of the usersessionId
- The id of the session to group calls togethercacheTTL
- The number of seconds to cache the response for. Please see caching to setup your cache.