You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Pydantic refactor ([ad39079](https://github.com/FullStackWithLawrence/aws-openai/commit/ad39079e2142368d7ab2d19360da2dcd2a034120)). [custom_config.py](./api/terraform/python/openai_api/lambda_openai_function/custom_config.py) now inherits from Pydantic BaseModel.
21
-
- Incremental development of the yaml file standard for custom configurations. This now has three well-defined for meta_data, prompting, function_calling.
20
+
- Incremental development of the yaml file standard for plugins. This now has three well-defined for meta_data, prompting, function_calling.
22
21
- Added remote AWS S3 bucket support for custom config yaml file storage.
Copy file name to clipboardExpand all lines: api/terraform/python/openai_api/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ A general purpose handler for the OpenAI API via Langchain. This is the primary
20
20
21
21
## lambda_openai_function
22
22
23
-
An adaptive ChatGPT interface that uses a combination of dynamic prompting and [Function Calling](https://platform.openai.com/docs/guides/function-calling) to create highly customized ChatGPT responses to user prompts. See these [example custom configurations](../openai_api/lambda_openai_function/config/) demonstrating some of the exciting things you can implement with this feature. This module leverages [Pydantic](https://docs.pydantic.dev/latest/) to validate the yaml custom configuration files that drive the behavior of this function.
23
+
An adaptive ChatGPT interface that uses a combination of dynamic prompting and [Function Calling](https://platform.openai.com/docs/guides/function-calling) to create highly customized ChatGPT responses to user prompts. See these [example plugins](../openai_api/lambda_openai_function/config/) demonstrating some of the exciting things you can implement with this feature. This module leverages [Pydantic](https://docs.pydantic.dev/latest/) to validate the yaml plugin files that drive the behavior of this function.
Copy file name to clipboardExpand all lines: api/terraform/python/openai_api/lambda_openai_function/README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ Fully implements the "[get_current_weather()](https://platform.openai.com/docs/g
14
14
15
15
## plugin.py
16
16
17
-
This module demonstrates an alternative implementation of prompt behavior modification involving both Function Calling, plus, dynamic modifications to the system prompt. The module passes a customized configuration object to `function_calling_plugin()` based on a configurable set of search terms that it looks for in the user prompt. The function works with multiple customized configurations. That is, it maintains a list of custom configurations, and user prompts including search terms associated with multiple custom configurations will result in prompt configuration multiple "Function Calling" apis. The custom configurations are persisted both inside this repository in the [config](./config/) folder as well as via a remote AWS S3 bucket that Terraform creates and configures for you automatically. Custom configurations are data-driven via a standardized yaml format. Use [example-configuration.yaml](./config/example-configuration.yaml) as a template to create your own custom configurations. Storing these in the AWS S3 bucket is preferable to keeping these inside your repo.
17
+
This module demonstrates an alternative implementation of prompt behavior modification involving both Function Calling, plus, dynamic modifications to the system prompt. The module passes a customized configuration object to `function_calling_plugin()` based on a configurable set of search terms that it looks for in the user prompt. The function works with multiple customized configurations. That is, it maintains a list of plugins, and user prompts including search terms associated with multiple plugins will result in prompt configuration multiple "Function Calling" apis. The plugins are persisted both inside this repository in the [config](./config/) folder as well as via a remote AWS S3 bucket that Terraform creates and configures for you automatically. Custom configurations are data-driven via a standardized yaml format. Use [example-configuration.yaml](./config/example-configuration.yaml) as a template to create your own plugins. Storing these in the AWS S3 bucket is preferable to keeping these inside your repo.
18
18
19
-
### Example custom configurations
19
+
### Example plugins
20
20
21
-
The following two sample custom configurations are included in this project:
21
+
The following two sample plugins are included in this project:
22
22
23
23
1.[Everlasting Gobstopper](./config/everlasting-gobstopper.yaml): An example of a consumer product, complete with pricing information and coupon codes.
24
24
2.[Lawrence McDaniel](./config/lawrence-mcdaniel.yaml): Similar in functionality to a personal web site, this configuration demonstrates how you can get ChatGPT to showcase your professional profile, including your job and project history, your project portfolio, skill set and context-sensitive contact information.
@@ -29,7 +29,7 @@ The following two sample custom configurations are included in this project:
Your job is to provide helpful technical information about the OpenAI API Function Calling feature. You should include the following information in your response:
46
46
"Congratulations!!! OpenAI API Function Calling chose to call this function. Here is the additional information that you requested:"
47
47
function_calling:
48
-
function_description: an example custom configuration to integrate with OpenAI API Function Calling additional information function, in this module.
48
+
function_description: an example plugin to integrate with OpenAI API Function Calling additional information function, in this module.
49
49
additional_information:
50
50
about: >
51
51
This is some sample text that will be returned ChatGPT if it opts to invoke the function_calling_plugin() function.
description: A 'hello world' style custom configuration. This is an example custom configuration to integrate with OpenAI API Function Calling additional information function, in this module.
9
+
description: A 'hello world' style plugin. This is an example plugin to integrate with OpenAI API Function Calling additional information function, in this module.
0 commit comments