xpertpupil.
01/31/2024, 3:10 PMian
01/31/2024, 3:51 PMyaml
providers:
- file://./path/to/provider_with_function.yaml
And in the yaml file:
yaml
id: openai:chat:gpt-3.5-turbo-0613
config:
functions:
- name: get_current_weather
description: Get the current weather in a given location
parameters:
type: object
properties:
location:
type: string
description: The city and state, e.g. San Francisco, CA
unit:
type: string
enum:
- celsius
- fahrenheit
description: The unit in which to return the temperature
required:
- location
This leads to a little repetition with the provider id, but overall mostly what you want I think.
See also for a json examplexpertpupil.
01/31/2024, 4:12 PMid separate from the prompt-foo config, and move it into our internal code, which is a bit of a smell, but overall better than the total duplication of the function definitions I thinkian
01/31/2024, 4:21 PMfile://ian
01/31/2024, 4:21 PMxpertpupil.
01/31/2024, 4:24 PMxpertpupil.
01/31/2024, 4:25 PMdaver987
02/08/2024, 5:51 AMdaver987
02/12/2024, 5:17 PM