appleboy/LLM Action

GitHub Action to interact with OpenAI Compatible LLM services

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
base_urlBase URL for OpenAI Compatible API endpointnohttps://api.openai.com/v1
api_keyAPI Key for authenticationyes
modelModel name to usenogpt-4o
skip_ssl_verifySkip SSL certificate verificationnofalse
system_promptSystem prompt to set the context. Supports plain text, file path, or URL (http://, https://). For files, use absolute/relative path or file:// prefix. Supports Go templates with environment variables (e.g., {{.GITHUB_REPOSITORY}}, {{.MODEL}}).no""
input_promptUser input prompt for the LLM. Supports plain text, file path, or URL (http://, https://). For files, use absolute/relative path or file:// prefix. Supports Go templates with environment variables (e.g., {{.GITHUB_REPOSITORY}}, {{.MODEL}}).yes
temperatureTemperature for response randomness (0.0-2.0)no0.7
max_tokensMaximum tokens in the responseno1000
tool_schemaJSON schema for structured output via function calling. Supports plain text, file path, or URL. Supports Go templates with environment variables (e.g., {{.GITHUB_REPOSITORY}}).no""
debugEnable debug mode to print all parametersnofalse
headersCustom HTTP headers to include in API requests. Format: "Header1:Value1,Header2:Value2" or multiline with one header per line. Useful for log analysis or custom authentication.no""
namedescription
responseThe response from the LLM
prompt_tokensNumber of tokens in the prompt
completion_tokensNumber of tokens in the completion
total_tokensTotal number of tokens used
prompt_cached_tokensNumber of cached tokens in the prompt (cost saving)
completion_reasoning_tokensNumber of reasoning tokens (for o1/o3 models)
completion_accepted_prediction_tokensNumber of accepted prediction tokens
completion_rejected_prediction_tokensNumber of rejected prediction tokens