brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.81k stars 2.33k forks source link

Network error leo byom #41997

Open Remco0o opened 1 day ago

Remco0o commented 1 day ago

Description

Hi, i added a own model(chatgpt) but everytime i got a network issue if i try to prompt a message it. But when i try a built in model it works. Any fixes for this?

(api key is provided but not for public)

Steps to reproduce

  1. add your own model
  2. send prompt
  3. got the error

Actual result

Image

Expected result

no network error

Reproduces how often

Easily reproduced

Brave version (brave://version info)

brave: 1.71.121 Chromium: 130.0.6723.91 (Official Build) (64-bit) Revision: 4f0f61781aeffc3842565931be77ac3e18032066 OS: Windows 11 Version 23H2 (Build 22631.4391)

Channel information

Reproducibility

Miscellaneous information

No response

jonathansampson commented 2 hours ago

Can you double-check your API key, please? Everything else looks good though. I just tested this on my end, and it worked. I suspect the API key itself may be the issue.

Model Request Name Server Endpoint API Key
gpt-4o-mini https://api.openai.com/v1/chat/completions sk*****kA