OpenAiHelper
Functions
Call gpt chat, and add the response to the chat object as an assistant message
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
chat_messages | List | List of messages and context to send to the ai openaichat |
Return type:
str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
inputs | dict |
Return type:
str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
input_description | str |
Return type:
str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
outputs_specs | Dict |
Return type:
str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
output_description | str |
Return type:
str |
Define the context rules for the code generation, so the generated code is executable.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
pip_package_names | List | List of available package that can be used in the generated code. the version of the package will be automatically retrieved, defaults to none [str], optional |
Return type:
str |
Method to improve the context by giving the version of the provided pip packages installed in the lab.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
pip_package_names | List |
Return type:
str |