coder {groqR}R Documentation

'Groq': Finish code

Description

'Groq': Finish code

Usage

coder(code = NULL, ...)

Arguments

code

The code to be completed by 'Groq'. If not provided, it will use what's copied on the clipboard.

...

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(coder("# A function to square a vector\nsquare_each <- function("))

## End(Not run)


[Package groqR version 0.0.1 Index]