Development
This package is structured as a monorepo:
playgroundcontains code for testing the packagepackages/astro-chatty-gptcontains the actual package
Install dependencies using pnpm:
pnpm i --frozen-lockfileStart the playground and package watcher:
pnpm devYou can now edit files in packages/astro-chatty-gpt. Please note that making changes to those files may require restarting the playground dev server.
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”-
“Search service unavailable” error
- Check your Upstash credentials are correct
- Ensure your Upstash Search Database is active
- Verify the REST URL and token are properly set
-
“AI service unavailable” error
- Verify your OpenAI API key is valid
- Check you have sufficient OpenAI credits
- Ensure the API key has the correct permissions
-
No search results found
- Make sure your website has been built and indexed
- Check the
includeandexcludepatterns in your configuration - Verify your content selectors are targeting the right elements
-
Build-time indexing fails
- Ensure your
siteoption is set inastro.config.mjs - Check that your website URLs are accessible
- Verify your content selectors match your HTML structure
- Ensure your