Opper AI
Setting Up An LLM Access Platform With $10 Credits Per Month
Last updated
Setting Up An LLM Access Platform With $10 Credits Per Month
Last updated
Go to https://opper.ai/ and sign up for a free account.
Click on "Settings" in the bottom of the left sidebar. Click "API Keys" in the main section. Click "Create API Key" in the top right corner.
Store the API key in your Polytope vault by running the following command in your system project directory.
pt secret set opper-api-key YOUR_OPPER_API_KEY
We use Opper AI for LLM response generation and knowledge base integration. The response generation follows a pattern:
def bake_response(messages):
response, _ = opper.call(
name="generate_response",
instructions="Generate a helpful, friendly but brief response to the user's message in the conversation.",
input={"messages": messages},
output_type=str,
)
return response
Learn more about the Opper SDK on GitHub and in the official documentation.