Skip to content

Commit

Permalink
Adds deprecated tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrofelnik committed Jun 26, 2024
1 parent 17a42a5 commit ca007f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/contracts/ChatOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ contract ChatOracle is IOracle {
mapping(uint => IOracle.LlmRequest) public llmConfigurations;

// @notice Mapping of prompt ID to the OpenAI configuration
// @deprecated Will be removed in future versions
mapping(uint => IOracle.OpenAiRequest) public openAiConfigurations;

// @notice Mapping of prompt ID to the Groq configuration
// @deprecated Will be removed in future versions
mapping(uint => IOracle.GroqRequest) public groqConfigurations;

// @notice Total number of prompts
Expand Down Expand Up @@ -228,6 +230,7 @@ contract ChatOracle is IOracle {
// @param promptId The ID of the prompt
// @param promptCallBackId The callback ID for the prompt
// @return An array of message history contents
// @deprecated Will be removed in future versions
function getMessages(
uint promptId,
uint promptCallBackId
Expand All @@ -239,6 +242,7 @@ contract ChatOracle is IOracle {
// @param promptId The ID of the prompt
// @param promptCallBackId The callback ID for the prompt
// @return An array of message history roles
// @deprecated Will be removed in future versions
function getRoles(
uint promptId,
uint promptCallBackId
Expand Down Expand Up @@ -314,6 +318,7 @@ contract ChatOracle is IOracle {
// @param promptCallbackId The callback ID for the LLM call
// @param config The OpenAI request configuration
// @return The ID of the created prompt
// @deprecated Use createLlmCall instead
function createOpenAiLlmCall(uint promptCallbackId, IOracle.OpenAiRequest memory config) public returns (uint) {
uint promptId = promptsCount;
callbackAddresses[promptId] = msg.sender;
Expand All @@ -335,6 +340,7 @@ contract ChatOracle is IOracle {
// @param response The OpenAI response
// @param errorMessage Any error message
// @dev Called by teeML oracle
// @deprecated Will be removed in future versions
function addOpenAiResponse(
uint promptId,
uint promptCallBackId,
Expand All @@ -353,6 +359,7 @@ contract ChatOracle is IOracle {
// @notice Marks an OpenAI prompt as processed
// @param promptId The ID of the prompt
// @dev Called by teeML oracle
// @deprecated Will be removed in future versions
function markOpenAiPromptAsProcessed(uint promptId) public onlyWhitelisted {
isPromptProcessed[promptId] = true;
}
Expand All @@ -361,6 +368,7 @@ contract ChatOracle is IOracle {
// @param promptCallbackId The callback ID for the LLM call
// @param config The Groq request configuration
// @return The ID of the created prompt
// @deprecated Use createLlmCall instead
function createGroqLlmCall(uint promptCallbackId, IOracle.GroqRequest memory config) public returns (uint) {
uint promptId = promptsCount;
callbackAddresses[promptId] = msg.sender;
Expand All @@ -382,6 +390,7 @@ contract ChatOracle is IOracle {
// @param response The Groq response
// @param errorMessage Any error message
// @dev Called by teeML oracle
// @deprecated Will be removed in future versions
function addGroqResponse(
uint promptId,
uint promptCallBackId,
Expand All @@ -400,6 +409,7 @@ contract ChatOracle is IOracle {
// @notice Marks a Groq prompt as processed
// @param promptId The ID of the prompt
// @dev Called by teeML oracle
// @deprecated Will be removed in future versions
function markGroqPromptAsProcessed(uint promptId) public onlyWhitelisted {
isPromptProcessed[promptId] = true;
}
Expand Down

0 comments on commit ca007f5

Please sign in to comment.