eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents

Home Page:https://docs.dbgpt.site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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