You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\MAX\Desktop>php gpttest.php
Array
(
[status] =>
[error] => Array
(
[message] => We couldn't find the model "gpt-3.5-turbo", join our discord server if you have any questions, https://discord.pawan.krd
[type] => invalid_request_error
)
[support] => https://discord.pawan.krd
)
It seems to be working after changing the URL to $url = "https://api.pawan.krd/cosmosrp/v1/chat/completions"; and disabling my VPN.
C:\Users\MAX\Desktop>php gpttest.php
Array
(
[id] => chatcmpl-pj6c45WtOyNajCxllJQ8k3eza3Ty
[created] => 1729982780
[model] => cosmosrp-001
[object] => chat.completion
[choices] => Array
(
[0] => Array
(
[finish_reason] => stop
[index] => 0
[message] => Array
(
[content] => *sighs* Hi there, I just really need to talk to someone right now. My girlfriend broke up with me yesterday and it's been a rough day. I don't know what to do or how to feel. Can we just chat for a bit? Maybe you could give me some advice or something? *looks down, fidgeting with his hands.*
[role] => assistant
)
)
)
[usage] => Array
(
[prompt_tokens] => 10
[completion_tokens] => 75
[total_tokens] => 85
)
)
output:
code:
The text was updated successfully, but these errors were encountered: