Skip to content

What API_ENDPOINT URL do you mean? #17

@j0k

Description

@j0k

According to gptchat.php I need to change "API endpoint URL".
In original gptchat.php code line after this comment is

curl_setopt($ch, CURLOPT_URL, "https://api.openai.com/v1/engines/" . MODEL . "/completions");

Questions:

  1. Does "CURLOPT_URL" is the same as "API endpoint URL" term?
  2. According to readme.md ENDPOINT for gpt-3.5-turbo model is /v1/chat/completions. Where is exact API endpoint URL substring in gptchat.php? It looks like it mixed with MODEL in endpoing URL. Any suggestions?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions