Glaider provides seamless integration with popular AI services, automatically anonymizing sensitive data in real-time during conversations, without compromising the quality of AI responses.
Here’s how you can use Glaider to ensure conversational privacy with OpenAI’s GPT model:
Copy
import glaiderfrom glaider import openai# Initialize Glaider with an API keyglaider.init(api_key='YOUR_GLAIDER_API_KEY')# Set the API key for OpenAIopenai.api_key = "YOUR_OPENAI_API_KEY"# Create a chat completion with OpenAI's GPT-4, ensuring anonymizationresponse = openai.chat_completion_create( model="gpt-4", messages=[ {"role": "system", "content": "You are a helpful assistant"}, {"role": "user", "content": "Hello, my email is lorenzo@glaider.it"} ],)