How to integrate OpenAI with Lytix
https://eu.api.lytix.co/proxy/v2/openai
if you are in the EU region.optimodel-py
/@lytix/client
package to use these parameters.
lytix-guards
: Pass in a list of fallback models to use
lytix-fallbackModels
: Pass in a list of extra models to try if the primary model fails. This can be helpful in mitigating provider outages.
lytix-speedPriority
: Pass in a speed priority to use
low
, optimodel will choose the cheapest possible model across all providers (for example if you have two providers bedrock
and anthropic
that both offer claude-3-opus
, optimodel will choose the claude-3-opus
model with the lowest price regardless of which provider is faster). If set to high
, optimodel will choose the fastest possible model across all providers.
lytix-provider
: Pass in a provider to use
sessionId
: A unique identifier for the session.
userId
: A unique identifier for the user.
workflowName
: A unique identifier for the workflow. If this workflow does not exist, it will be created and can be viewed here
claude-3-5-sonnet
and pass the image in with no code changes.
model
field to the model you want to use.
mistralApiKey
: The API key for the Mistral API.mistralCodeStralApiKey
: The API key for the Mistral CodeStral API.openaiKey
: The API key for the OpenAI API.anthropicApiKey
: The API key for the Anthropic API.groqApiKey
: The API key for the Groq API.togetherApiKey
: The API key for the Together API.geminiApiKey
: The API key for the Gemini API.awsAccessKeyId
: The access key for the AWS account.awsSecretKey
: The secret access key for the AWS account.awsRegion
: The session token for the AWS account.