webrl/configs/agents/openai-chat.yaml
2024-08-08 23:40:38 +08:00

14 lines
382 B
YAML

module: src.client.agents.HTTPAgent
parameters:
url: https://one-api.glm.ai/v1/chat/completions # https://api.openai.com/v1/chat/completions
headers:
Content-Type: application/json
Authorization: Bearer
body:
temperature: 0
prompter:
name: role_content_dict
args:
agent_role: assistant
return_format: "{response[choices][0][message][content]}"