OpenAI providers
The OpenAI integration offers three different providers that mimic the three ways in which chats can be had with GPT through the API.
Firstly and most simply, we offer a regular chat integration that uses the chat completion API that is currently under Legacy support. It has the fewest capabilities and will be phased out in the future.
GtLlmChat new provider: (GtOpenAIProvider withApiKeyFromFile)
Secondly, we offer an integration based on the new responses API. This is currently under active development and is the default API as the other APIs are being deprecated.
GtLlmChat new provider: (GtOpenAIResponseProvider withApiKeyFromFile)
Finally, we offer an integration with the assistants API. This used to be the most advanced integration that we recommended for tool and assistant use, but was superseded by the responses API. OpenAI is deprecating this API in the near future.
GtLlmAssistant new providerStencil: [ :anInstructionFormat | GtOpenAIAssistantProvider withApiKeyFromFile instructions: anInstructionFormat asInstructionPiece instructionString; format: anInstructionFormat asJsonSchema ]; createChat