kirby-tools / kirby-copilot

🪁 AI-powered content generation for Kirby CMS
https://kirbycopilot.com
Other
2 stars 0 forks source link

Der Bereichstyp "copilot" ist nicht gültig #1

Closed outline4 closed 2 weeks ago

outline4 commented 2 weeks ago

This is my setup:

"kirby": "4.3.1", "php": "8.2.13", "server": "LiteSpeed",

"name": "johannschopplich/copilot", "version": "1.8.3"

I've tried multiple things, but this error: Der Bereichstyp "copilot" ist nicht gültig keeps popping up.

I bought a license, but I can't enter it since I don't see the field.

I hope it's a beginner mistake ;)

Cheers
Stefan

outline4 commented 2 weeks ago

of course I've added

'johannschopplich.copilot' => [
    'providers' => [
        'openai' => [
            'apiKey' => 'xxxx',
            'model' => 'gpt-4o',
        ]
    ]
],

to the config.php

johannschopplich commented 2 weeks ago

Hi there!

Can you please send me your blueprint configuration and a minimum reproducible example? Without any context, I can't debug your error. 🙂

Hint: The copilot is not a field, but a section. This is a basic setup:

sections:
  myCopilot:
    type: copilot
    field: content01
outline4 commented 2 weeks ago

Hi, I've setup everything correctly.

Two hours later, I walk into my office and see that it's working.

Two hours is exactly the difference between my server time and the current time.

It works, and I even registered it. Thanks for the quick reply!

johannschopplich commented 2 weeks ago

I'm not sure what the issue at hand was... Glad to hear it's working!

Feel free to each out if you encounter any other problems.