sakowicz / actual-ai

Categorise transactions in Actual Budget using AI.
MIT License
83 stars 3 forks source link

All non-default model calls to OpenAI come back invalid #51

Closed trashdad closed 2 weeks ago

trashdad commented 2 weeks ago

image

have tried:

Specifying any model using the OPENAI_MODEL env variable results in an error.

I have credits on my account, it is not registering activity to my API

sakowicz commented 2 weeks ago

Hello!

Can you try without "?

trashdad commented 2 weeks ago

Hello!

Can you try without "?

Hello! Thanks for looking at my issue!

I have amended my initial post. If OPENAI_MODEL is commented out, it defaults to gpt-4-turbo as expected. Specifying any other model (gpt-4o, gpt-4-mini, etc.) results in an error.

I have tried with and without the ""

sakowicz commented 2 weeks ago

https://platform.openai.com/docs/models

There is no gpt-4-mini model; maybe you mean gpt-4o-mini?

gpt-4o works for me 🤔

Can you show me how you set that model?

trashdad commented 2 weeks ago

https://platform.openai.com/docs/models

There is no gpt-4-mini model; maybe you mean gpt-4o-mini?

gpt-4o works for me 🤔

Can you show me how you set that model?

That must have been my problem. Simply not copying down the model names down correctly, or using "" inappropriately.

Sorry for wasting your time, I tried gpt-4o-mini and it works just fine.