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

14 lines
336 B
YAML

module: src.client.agents.HTTPAgent
parameters:
url: 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]}"