org-ai icon indicating copy to clipboard operation
org-ai copied to clipboard

prevent case sensitivity api response errors

Open tillydray opened this issue 1 month ago • 0 comments

I was updating to the omni model and used all caps

    (setq org-ai-default-chat-model "GPT-4o")
    (add-to-list 'org-ai-chat-models "GPT-4o")

I got this error response The model GPT-4o does not exist or you do not have access to it. So I changed it to lowercase and it worked.

    (setq org-ai-default-chat-model "gpt-4o")
    (add-to-list 'org-ai-chat-models "gpt-4o")

it's a minor issue but some people might get stuck on this for some time. lower casing the model would help and maybe providing a warning message that models should be lowercased?

tillydray avatar May 16 '24 13:05 tillydray