nameIt: 'Groq': Create a Function or Variable Name

View source: R/nameIt.R

nameItR Documentation

'Groq': Create a Function or Variable Name

Description

'Groq': Create a Function or Variable Name

Usage

nameIt(code = NULL, namingConvention = "camelCase", ...)

Arguments

code

The code for which to give a variable name to its result. If not provided, it will use what's copied on the clipboard.

namingConvention

Defaults to "camelCase".

...

Following arguments can be set manually or in .Renviron: GROQ_API_KEYis the 'Groq API' key. model Model choice. Default is mistral-7b-instruct. systemRole System role; Default is: "You are a helpful assistant with extensive knowledge of R programming." maxTokens The maximum integer of completion tokens returned. temperature The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic. top_p Nucleus sampling threshold, valued between 0 and 1. proxy Default value is NULL.

Value

A character value with the response generated by 'Groq'.

Examples

## Not run: 
cat(nameIt("sapply(1:10, function(i) i ** 2)"))

## End(Not run)


groqR documentation built on April 12, 2025, 1:36 a.m.