Getting Started with Tinylang¶
Installation¶
Install Tinylang using pip:
pip install tinylang
Configuration¶
Set up your API keys as environment variables:
OPENAI_API_KEY
for OpenAIANTHROPIC_API_KEY
for ClaudeGOOGLE_API_KEY
for Gemini
Alternatively, you can pass the API keys directly when initializing the chat interfaces.
Basic Usage¶
Here's a simple example using the OpenAI interface:
from tinylang.llms import ChatOpenAI
chat = ChatOpenAI("gpt-3.5-turbo")
response = chat.invoke("Hello, how are you?")
print(response)
For more examples and detailed usage instructions, check out the documentation for each chat interface: