eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.64k stars 1.83k forks source link

How to modify LLM in AWEL development #1394

Closed Rosejacka closed 6 months ago

Rosejacka commented 6 months ago

Search before asking

Operating system information

Linux

Python version information

=3.11

DB-GPT version

main

Related scenes

Installation Information

Device information

normal

Models information

LLM:zhipu

What happened

In this official LLM dialogue demo, I have the key of Zhipu and wanted to replace LLM with Zhipu. However, I found that this writing was not successful and returned None f3dafe826d3864a8384d6bca5262fc2

What you expected to happen

change LLM

How to reproduce

write AWEL

Additional context

No response

Are you willing to submit PR?

Aries-ckt commented 6 months ago

how do you set your api_key and model? image and

 curl -X POST http://127.0.0.1:5555/api/v1/awel/trigger/examples/simple_chat \
        -H "Content-Type: application/json" -d '{
            "model": "chatglm_pro",
            "user_input": "hello"
        }'
Rosejacka commented 6 months ago

ok,thanks! it works