Skip to content

Commit

Permalink
Groq SimplelLm contract name and constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrofelnik committed Jul 2, 2024
1 parent 5e8ccec commit 013c4d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contracts/contracts/GroqSimpleLLM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ pragma solidity ^0.8.13;
// import "https://github.com/galadriel-ai/contracts/blob/main/contracts/contracts/interfaces/IOracle.sol";
import "./interfaces/IOracle.sol";

contract SimpleLLM {
address private oracleAddress = 0x68EC9556830AD097D661Df2557FBCeC166a0A075; // use latest: https://docs.galadriel.com/oracle-address
contract GroqSimpleLLM {
address private oracleAddress; // use latest: https://docs.galadriel.com/oracle-address
uint private runId = 0;
string public message;
string public response;
IOracle.GroqRequest private config;

constructor() {
constructor(address initialOracleAddress) {
oracleAddress = initialOracleAddress;

config = IOracle.GroqRequest({
model: "mixtral-8x7b-32768", // "llama3-8b-8192", "llama3-70b-8192", "mixtral-8x7b-32768" or "gemma-7b-it"
frequencyPenalty: 21, // > 20 for null
Expand Down

0 comments on commit 013c4d5

Please sign in to comment.