-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): More AWEL operators and new prompt manager API #972
Conversation
Now we can run AWEL file in dev mode. python examples/awel/simple_chat_history_example.py Output: INFO: Started server process [9412]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:5555 (Press CTRL+C to quit) Then send request to dev server, DBGPT_SERVER="http://127.0.0.1:5555"
curl -X POST $DBGPT_SERVER/api/v1/awel/trigger/examples/simple_history/multi_round/chat/completions \
-H "Content-Type: application/json" -d '{
"model": "gpt-3.5-turbo",
"context": {
"conv_uid": "uuid_conv_1234"
},
"messages": "Who is elon musk?"
}'
|
|
It has been fix in lastest code. |
According to our idea, it is better not to have particularly long names for
uk_prompt_name_sys_code varchar length set to |
Good advice, done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome AWEL(Agentic Workflow Expression Language) is all you need. LGTM
How Can I fix this? use
|
Yes, if we run AWEL file in dev mode(default use chatgpt model), wo should set environment first. export OPENAI_API_KEY=sxxxxxx
export OPENAI_API_BASE=https://api.openai.com/v1 |
@fangyinc Great for that, now i know who is elon musk? 😂
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+
Co-authored-by: csunny <[email protected]>
…-ai#972) Co-authored-by: csunny <[email protected]>
…-ai#972) Co-authored-by: csunny <[email protected]>
LLMBranchOperator
ConversationOperator
to save or load conversation in storageBufferedConversationMapperOperator
to handle multiple rounds of conversation