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 will be 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 is the most advanced integration that we currently recommend for tool and tutor use, but will be superseded by the responses API in the future.
GtLlmTutor new providerStencil: [ :anInstructionFormat | GtOpenAIAssistantProvider withApiKeyFromFile instructions: anInstructionFormat asInstructionPiece instructionString; format: anInstructionFormat asJsonSchema ]; createChat