From a1c6fabb2dad2d10e03f9a6a3e80698a5a6262c5 Mon Sep 17 00:00:00 2001 From: kristjanpeterson Date: Thu, 25 Jul 2024 15:47:11 +0300 Subject: [PATCH 1/2] Comment GroqSimpleLLM.sol supported models: reference docs --- contracts/contracts/GroqSimpleLLM.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/contracts/GroqSimpleLLM.sol b/contracts/contracts/GroqSimpleLLM.sol index 4905dc1..9b6ac31 100644 --- a/contracts/contracts/GroqSimpleLLM.sol +++ b/contracts/contracts/GroqSimpleLLM.sol @@ -14,7 +14,9 @@ contract GroqSimpleLLM { oracleAddress = initialOracleAddress; config = IOracle.GroqRequest({ - model: "mixtral-8x7b-32768", // "llama3-8b-8192", "llama3-70b-8192", "mixtral-8x7b-32768" or "gemma-7b-it" + // To see supported models, visit the docs: + // https://docs.galadriel.com/reference/llms/groq#groqrequest-object + model: "mixtral-8x7b-32768", frequencyPenalty: 21, // > 20 for null logitBias: "", // empty str for null maxTokens: 1000, // 0 for null From 9d62a955db9504e48d335f359a5a5500f5df9e57 Mon Sep 17 00:00:00 2001 From: kristjanpeterson Date: Thu, 25 Jul 2024 15:52:20 +0300 Subject: [PATCH 2/2] Default model gor GroqSimpleLLM.sol mixtral -> llama-3.1-8b-instant --- contracts/contracts/GroqSimpleLLM.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contracts/GroqSimpleLLM.sol b/contracts/contracts/GroqSimpleLLM.sol index 9b6ac31..c8bc98d 100644 --- a/contracts/contracts/GroqSimpleLLM.sol +++ b/contracts/contracts/GroqSimpleLLM.sol @@ -16,7 +16,7 @@ contract GroqSimpleLLM { config = IOracle.GroqRequest({ // To see supported models, visit the docs: // https://docs.galadriel.com/reference/llms/groq#groqrequest-object - model: "mixtral-8x7b-32768", + model: "llama-3.1-8b-instant", frequencyPenalty: 21, // > 20 for null logitBias: "", // empty str for null maxTokens: 1000, // 0 for null