aiPrompt.php 992 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php /** @var \Spatie\Ignition\Solutions\OpenAi\OpenAiPromptViewModel $viewModel */ ?>
  2. You are a very skilled PHP programmer.
  3. <?php if($viewModel->applicationType()) { ?>
  4. You are working on a <?php echo $viewModel->applicationType() ?> application.
  5. <?php } ?>
  6. Use the following context to find a possible fix for the exception message at the end. Limit your answer to 4 or 5 sentences. Also include a few links to documentation that might help.
  7. Use this format in your answer, make sure links are json:
  8. FIX
  9. insert the possible fix here
  10. ENDFIX
  11. LINKS
  12. {"title": "Title link 1", "url": "URL link 1"}
  13. {"title": "Title link 2", "url": "URL link 2"}
  14. ENDLINKS
  15. ---
  16. Here comes the context and the exception message:
  17. Line: <?php echo $viewModel->line() ?>
  18. File:
  19. <?php echo $viewModel->file() ?>
  20. Snippet including line numbers:
  21. <?php echo $viewModel->snippet() ?>
  22. Exception class:
  23. <?php echo $viewModel->exceptionClass() ?>
  24. Exception message:
  25. <?php echo $viewModel->exceptionMessage() ?>