Can i use host IP call the dbgpt api?
kevinsummer219 opened this issue · comments
Search before asking
- I had searched in the issues and found no similar feature requirement.
Description
description:
DBGPT_API_KEY="dbgpt"
curl -X POST "http://localhost:5670/api/v2/chat/completions"
-H "Authorization: Bearer $DBGPT_API_KEY"
-H "accept: application/json"
-H "Content-Type: application/json"
-d "{"messages":"Hello","model":"chatgpt_proxyllm", "stream": true}"
I want use host IP addr call the api "5670/api/v2/chat/completions", can you tell me modify it?
eg: i use the ip "10.10.100.53" to replace the "localhost"
DBGPT_API_KEY="dbgpt"
curl -X POST "http://10.10.100.53:5670/api/v2/chat/completions"
-H "Authorization: Bearer $DBGPT_API_KEY"
-H "accept: application/json"
-H "Content-Type: application/json"
-d "{"messages":"Hello","model":"chatgpt_proxyllm", "stream": true}"
thanks
Use case
No response
Related issues
No response
Feature Priority
High
Are you willing to submit PR?
- Yes I am willing to submit a PR!
I want use host IP addr call the api "5670/api/v2/chat/completions", can you tell me modify it?
I can use host IP call dbgpt api, the function is normal, thanks