diff --git a/CHANGELOG.md b/CHANGELOG.md index 20c8662..21a8649 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log +## [1.2.16] - 2024-01-17 + +### Changed + +- Reverted function calling with GPT-4 model due to issues +- Included support for message properties `msg.API_KEY` and `msg.ORGANIZATION` + ## [1.2.15] - 2024-01-12 ### Changed diff --git a/README.md b/README.md index 0a97da9..45230c5 100644 --- a/README.md +++ b/README.md @@ -72,13 +72,9 @@ For detailed information on the usage of these modes, please refer to the [OpenA - [Optional] `msg.history` should be an array of objects containing the conversation history. [Default:`[]`] - - [Optional] `msg.functions` should be an array of objects defining function behaviors for the model. Each object must contain a `name` and `behavior` property. [Default:`[]`] - - - [Optional] `msg.function_call` should be a string or object that controls how the model responds to function calls. "none" means the model does not call a function and responds to the end-user. "auto" allows the model to decide. Specifying a particular function via `{"name":"my_function"}` forces the model to call that function. [Default:`none` if no functions, `auto` if functions are present] - ### Additional optional properties -The following optional inputs are supported - `msg.max_tokens`, `msg.suffix`, `msg.n`, `msg.temperature`, `msg.top_p`, `msg.presence_penalty`, `msg.frequency_penalty`, and `msg.echo`. See the nodes built-in help tab for more information on how they are used. +The following optional inputs are supported - `msg.max_tokens`, `msg.suffix`, `msg.n`, `msg.temperature`, `msg.top_p`, `msg.presence_penalty`, `msg.frequency_penalty`, `msg.echo`, `msg.API_KEY` and `msg.ORGANIZATION`. See the nodes built-in help tab for more information on how they are used. ## Examples diff --git a/chatgpt.html b/chatgpt.html index 7cd1534..110ba7a 100644 --- a/chatgpt.html +++ b/chatgpt.html @@ -90,17 +90,7 @@

Inputs

string
The topic and node behavior to select.
- -
msg.function - string -
-
(GPT-4 only) The function to be used if specified.
- -
msg.function_call - string -
-
(GPT-4 only) Whether to call the function automatically or not. Set to 'auto' if functions are present, 'none' if no functions are specified. [Default:`none` if no functions, `auto` if functions are present]
- +
msg.size string
@@ -160,6 +150,16 @@

Inputs

boolean
Echo back the prompt in addition to the completion when set to true.
+ +
msg.API_KEY + string +
+
The API key to be used if not specified in the node.
+ +
msg.ORGANIZATION + string +
+
The ORGANIZATION to be used if not specified in the node.

Outputs

@@ -200,9 +200,7 @@

Details

5. When msg.topic is set to gpt4:

Required msg.payload should be a well-written prompt.

Optional msg.history should be an array of objects containing the conversation history. [Default:[]]

-

Optional msg.function should contain the function to be used if specified. This parameter is only applicable when using GPT-4.

-

Optional msg.function_call should indicate whether to call the function automatically or not. It should be set to 'auto' if functions are present, and 'none' if no functions are specified. The default value is 'none' if no functions are specified, and 'auto' if functions are present. This parameter is only applicable when using GPT-4.

- +

Links