#Ai Not working

16 messages · Page 1 of 1 (latest)

feral badger
#

So I have this in my code:

        "model": "openai",
        "messages": messages,
        "temperature": 1,
        "max_tokens": 800
    }```

but before this it was:

```    payload = {
        "model": "gpt-4",
        "messages": messages,
        "temperature": 0.7,
        "max_tokens": 800
    }```

it stopped working so i changed temperature to 1 & model to openai, now its working but giving very very weird/differnt responses so how can i get another ai model which works good, replies fast & just is better
dapper plank
feral badger
dapper plank
#

Just like you pass messages, pass a system parameter and that should include the instructions on how the model should behave

feral badger
feral badger
dapper plank
#

You should probably do some basic research about ai model's and api as well as api providers

arctic moss
#

it should be fixed now

arctic moss
arctic moss
dapper plank
arctic moss
#

maybe just not specifying any temperature would also solve it