How to use AI in ShipThing.
ai
package that uses ai-sdk to provide a simple interface for interacting with AI models.
@repo/ai
package.
generateText
function to generate text from an AI model. For example:
Thread
and Message
.
paymentsAgentToolkit
to add payments capabilities to your AI agent for financial services. As ShipThing uses Stripe by default, here’s an example of how to use it:
generateText
request using our analytics
package:
provider
in @repo/ai/lib/provider.ts
to use the one you want. For example, to use Anthropic, you can change it to:
.cursorrules
file to customize the AI agent to your project needs. These rules can be updated at any time and will better help you over time.
Great examples of how to customize your Cursor Rules can be found at awesome-cursorrules.
Learn more about Cursor Rules.
Use Instruction Files
setting in VSCode.
Update the .github/copilot-instructions.md
file to customize the AI agent to your project needs. These instructions can be updated at any time and will better help you over time.