Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmiessler/Fabric
/ functions
Functions
1,348 in github.com/danielmiessler/Fabric
⨍
Functions
1,348
◇
Types & classes
220
↓ 2 callers
Function
error
(message: string)
web/src/lib/services/toast-service.ts:10
↓ 2 callers
Function
extractAccountIDFromJWT
(jwt string)
internal/plugins/ai/codex/token.go:50
↓ 2 callers
Function
extractErrorMessage
(body []byte)
internal/plugins/ai/codex/errors.go:111
↓ 2 callers
Function
extractFlag
(arg string)
internal/cli/flags.go:258
↓ 2 callers
Function
extractModelName
extractModelName extracts the model name from the full resource path Input: "publishers/google/models/gemini-2.0-flash" Output: "gemini-2.0-flash"
internal/plugins/ai/vertexai/models.go:125
↓ 2 callers
Method
extractResponseText
extractResponseText extracts the assistant's response from messages.
internal/plugins/ai/copilot/copilot.go:403
↓ 2 callers
Method
extractText
(resp *responses.Response)
internal/plugins/ai/openai/openai.go:386
↓ 2 callers
Method
fetchPRs
(forcePRSync bool)
cmd/generate_changelog/internal/changelog/generator.go:196
↓ 2 callers
Method
fetchStream
( request: ChatRequest, )
web/src/lib/services/ChatService.ts:46
↓ 2 callers
Function
fetch_models_once
Fetch models once and cache the results.
scripts/python_ui/streamlit.py:167
↓ 2 callers
Function
fixMarkdown
(content string)
cmd/generate_changelog/internal/changelog/generator.go:507
↓ 2 callers
Method
formatPR
(pr *github.PR)
cmd/generate_changelog/internal/changelog/generator.go:538
↓ 2 callers
Function
generateGradientColor
(y: number, height: number)
web/src/lib/components/ui/connections/colors.ts:1
↓ 2 callers
Method
generateWAVFile
generateWAVFile creates WAV data from PCM data with proper headers
internal/plugins/ai/gemini/gemini.go:397
↓ 2 callers
Function
getFabricBaseUrl
()
web/src/lib/config/environment.ts:13
↓ 2 callers
Method
getGeminiRegion
Gemini methods using genai SDK with Vertex AI backend getGeminiRegion returns the appropriate region for a Gemini model. Preview models are often only
internal/plugins/ai/vertexai/vertexai.go:262
↓ 2 callers
Function
getLocaleCandidates
getLocaleCandidates returns a list of locale candidates to try, in order of preference. For example, for "pt-PT" it returns ["pt-PT", "pt", "pt-BR"] (
internal/i18n/i18n.go:210
↓ 2 callers
Function
getOutputFormatFromExtension
getOutputFormatFromExtension determines the API output format based on file extension
internal/plugins/ai/openai/openai_image.go:39
↓ 2 callers
Method
getSortedGroupsItems
getSortedGroupsItems returns a new slice of GroupItems with both groups and their items sorted alphabetically in a case-insensitive manner. The origin
internal/util/groups_items.go:48
↓ 2 callers
Function
get_outputs_dir
Get the directory for storing outputs.
scripts/python_ui/streamlit.py:1030
↓ 2 callers
Method
initParticles
()
web/src/lib/components/ui/connections/ParticleSystem.ts:29
↓ 2 callers
Function
isConversationalModel
isConversationalModel returns true if the model is suitable for text generation/chat Filters out image generation, embeddings, and other non-conversat
internal/plugins/ai/vertexai/models.go:196
↓ 2 callers
Method
isDuplicateMessage
(message string, commits []*git.Commit)
cmd/generate_changelog/internal/changelog/generator.go:680
↓ 2 callers
Function
isMergeCommit
isMergeCommit determines if a commit is a merge commit based on its parents and message patterns.
cmd/generate_changelog/internal/changelog/processing.go:37
↓ 2 callers
Method
isTTSModel
isTTSModel checks if the model is a text-to-speech model
internal/plugins/ai/gemini/gemini.go:285
↓ 2 callers
Function
isTimeStamp
(s string)
internal/tools/youtube/youtube.go:418
↓ 2 callers
Function
isUsageLimitMessage
(message string)
internal/plugins/ai/codex/errors.go:172
↓ 2 callers
Function
isValidLocale
isValidLocale checks if a locale string can be parsed as a valid language tag.
internal/i18n/locale.go:71
↓ 2 callers
Function
joinPromptSections
joinPromptSections trims each part, drops empty ones, and joins the rest with newline separators.
internal/core/chatter.go:47
↓ 2 callers
Method
loadPattern
(source string)
internal/plugins/db/fsdb/patterns.go:58
↓ 2 callers
Function
maskSecret
maskSecret redacts a secret value for display, showing only the first 4 and last 4 chars.
internal/plugins/ai/bedrock/bedrock.go:184
↓ 2 callers
Function
modelPriority
modelPriority returns the sort priority for a model (lower = higher priority)
internal/plugins/ai/vertexai/models.go:153
↓ 2 callers
Function
modelsURLFor
(t *testing.T, baseURL string)
internal/plugins/ai/openai/models_cache_test.go:28
↓ 2 callers
Function
normalizeLocale
normalizeLocale converts various locale formats to BCP 47 language tags. Examples: - "en_US.UTF-8" -> "en-US" - "fr_FR@euro" -> "fr-FR" - "zh_CN.GB231
internal/i18n/locale.go:40
↓ 2 callers
Function
normalizeSemverLikeVersion
(version string)
internal/plugins/ai/codex/token.go:87
↓ 2 callers
Function
normalizeToBCP47
normalizeToBCP47 normalizes a locale string to BCP 47 format. Converts underscores to hyphens and ensures proper casing (language-REGION).
internal/i18n/i18n.go:184
↓ 2 callers
Function
parseGeminiThinking
parseGeminiThinking converts thinking level to Gemini thinking config
internal/plugins/ai/vertexai/vertexai.go:319
↓ 2 callers
Function
parseOllamaNumCtx
parseOllamaNumCtx extracts and validates the num_ctx parameter from Ollama request options. Returns: - (0, nil) if num_ctx is not present or is null -
internal/server/ollama.go:91
↓ 2 callers
Function
parseReasoningEffort
(level domain.ThinkingLevel)
internal/plugins/ai/openai/openai.go:244
↓ 2 callers
Function
parseSeconds
(secondsStr string)
internal/tools/youtube/youtube.go:480
↓ 2 callers
Function
parseTimestampToSeconds
parseTimestampToSeconds converts timestamp string (HH:MM:SS or MM:SS) to total seconds
internal/tools/youtube/youtube.go:447
↓ 2 callers
Function
parseTokenClaims
(jwt string)
internal/plugins/ai/codex/token.go:58
↓ 2 callers
Function
randomBase64URL
(size int)
internal/plugins/ai/codex/oauth.go:278
↓ 2 callers
Function
removeVTTTags
(s string)
internal/tools/youtube/youtube.go:422
↓ 2 callers
Method
request
(requestURL string)
internal/tools/jina/jina.go:45
↓ 2 callers
Method
runOAuthFlow
( ctx context.Context, openBrowserFn func(string) error, )
internal/plugins/ai/codex/oauth.go:53
↓ 2 callers
Function
sanitize_input_content
Sanitize input content by removing or replacing problematic characters. Args: input_text: The input text to sanitize Returns:
scripts/python_ui/streamlit.py:771
↓ 2 callers
Method
saveRegistry
()
internal/plugins/template/extension_registry.go:309
↓ 2 callers
Function
save_output_log
Save pattern execution log.
scripts/python_ui/streamlit.py:665
↓ 2 callers
Method
sendResponses
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/openai/openai.go:190
↓ 2 callers
Method
setSettingValue
(setting *plugins.Setting, value string)
internal/plugins/ai/codex/auth_transport.go:127
↓ 2 callers
Function
shouldIncludeRepeat
shouldIncludeRepeat determines if repeated content should be included based on time gap
internal/tools/youtube/youtube.go:428
↓ 2 callers
Method
shouldUseImageGeneration
shouldUseImageGeneration determines if image generation should be enabled This is a heuristic based on the presence of --image-file flag
internal/plugins/ai/openai/openai_image.go:101
↓ 2 callers
Function
sortModels
sortModels sorts models by priority: Gemini > Claude > Others Within each group, models are sorted alphabetically
internal/plugins/ai/vertexai/models.go:139
↓ 2 callers
Method
supportsResponsesAPI
supportsResponsesAPI determines if the provider supports the new Responses API
internal/plugins/ai/openai/openai.go:218
↓ 2 callers
Method
toMessages
toMessages converts the array of input messages from the ChatCompletionMessageType to the Bedrock Converse Message type. The system role messages are
internal/plugins/ai/bedrock/bedrock.go:606
↓ 2 callers
Method
tryMethodYtDlpInternal
tryMethodYtDlpInternal is a helper function to reduce duplication between tryMethodYtDlp and tryMethodYtDlpWithTimestamps.
internal/tools/youtube/youtube.go:221
↓ 2 callers
Function
validateImageFile
validateImageFile validates the image file path and extension
internal/cli/flags.go:353
↓ 2 callers
Function
validateImageParameters
validateImageParameters validates image generation parameters
internal/cli/flags.go:375
↓ 2 callers
Function
validate_input_content
Validate input content for potentially problematic characters or patterns. Args: input_text: The input text to validate Returns:
scripts/python_ui/streamlit.py:724
↓ 2 callers
Function
validate_pattern
Validate a pattern's structure and content.
scripts/python_ui/streamlit.py:915
↓ 2 callers
Function
wrapPublicError
(message string, statusCode int, providerMessage string)
internal/plugins/ai/codex/errors.go:87
↓ 2 callers
Function
writeOllamaResponseStruct
writeOllamaResponseStruct marshals the provided OllamaResponse and writes it as newline-delimited JSON to the HTTP response stream.
internal/server/ollama.go:555
↓ 1 callers
Function
APIKeyMiddleware
APIKeyMiddleware validates API key for protected endpoints. Swagger documentation endpoints (/swagger/*) are exempt from authentication to allow users
internal/server/auth.go:15
↓ 1 callers
Method
AddSetupQuestionCustomBool
(name string, required bool, question string)
internal/plugins/plugin.go:90
↓ 1 callers
Method
AppendMessage
(message string)
internal/cli/flags.go:549
↓ 1 callers
Method
Apply
Apply executes file operations: - read:PATH - Read entire file content - tail:PATH|N - Read last N lines - exists:PATH - Check if file exists - size:P
internal/plugins/template/file.go:58
↓ 1 callers
Method
Apply
Apply executes the requested text operation on the provided value
internal/plugins/template/text.go:35
↓ 1 callers
Method
Apply
Apply executes fetch operations: - get:URL: Fetches content from URL, returns text content
internal/plugins/template/fetch.go:36
↓ 1 callers
Method
Apply
Apply executes datetime operations with the following formats: Time: now (RFC3339), time (HH:MM:SS), unix (timestamp) Hour: startofhour, endofhour Dat
internal/plugins/template/datetime.go:22
↓ 1 callers
Method
AuthHeader
AuthHeader returns the Bedrock auth header (Bearer token)
internal/plugins/ai/azureaigateway/backend_bedrock.go:56
↓ 1 callers
Method
AuthHeader
AuthHeader returns the header name and value for authentication. Each APIM backend uses a different auth header: Bedrock: "Authorization", "Beare
internal/plugins/ai/azureaigateway/azureaigateway.go:48
↓ 1 callers
Method
AuthHeader
AuthHeader returns the Vertex AI auth header (Google API key via APIM)
internal/plugins/ai/azureaigateway/backend_vertex_ai.go:51
↓ 1 callers
Method
AuthHeader
AuthHeader returns the Azure OpenAI auth header
internal/plugins/ai/azureaigateway/backend_azure_openai.go:58
↓ 1 callers
Method
Base64Content
()
internal/domain/attachment.go:108
↓ 1 callers
Method
BuildChatRequest
(Meta string)
internal/cli/flags.go:482
↓ 1 callers
Method
BuildEndpoint
BuildEndpoint constructs the full API endpoint URL for the given model
internal/plugins/ai/azureaigateway/azureaigateway.go:41
↓ 1 callers
Method
BuildEndpoint
BuildEndpoint constructs the Vertex AI API endpoint URL Uses /publishers/google/models/{model}:generateContent path per Azure APIM Gateway routing Thi
internal/plugins/ai/azureaigateway/backend_vertex_ai.go:45
↓ 1 callers
Method
BuildResponseParams
BuildResponseParams exposes the shared Responses API request builder so auth-specialized vendors can reuse Fabric's OpenAI-compatible request shape.
internal/plugins/ai/openai/openai.go:356
↓ 1 callers
Method
Clear
()
internal/plugins/ai/vendors.go:40
↓ 1 callers
Method
Clear
()
cmd/generate_changelog/internal/cache/cache.go:270
↓ 1 callers
Method
Close
()
cmd/generate_changelog/internal/release.go:70
↓ 1 callers
Method
CommitChanges
CommitChanges creates a commit with the given message Uses native git CLI instead of go-git to properly handle worktree scenarios
cmd/generate_changelog/internal/git/walker.go:495
↓ 1 callers
Method
CommitExists
CommitExists checks if a commit already exists in the cache
cmd/generate_changelog/internal/cache/cache.go:291
↓ 1 callers
Method
Complete
(ctx context.Context, prompt string, opts *domain.ChatOptions)
internal/plugins/ai/lmstudio/lmstudio.go:266
↓ 1 callers
Method
Configure
()
internal/plugins/plugin.go:101
↓ 1 callers
Method
Configure
()
internal/plugins/plugin.go:284
↓ 1 callers
Method
Configure
()
internal/plugins/plugin.go:308
↓ 1 callers
Method
ContentBytes
()
internal/domain/attachment.go:82
↓ 1 callers
Function
CreateAudioOutputFile
CreateAudioOutputFile creates a binary file for audio data
internal/cli/output.go:45
↓ 1 callers
Function
CreateClient
CreateClient creates a new client for a provider by name
internal/plugins/ai/openai_compatible/providers_config.go:363
↓ 1 callers
Method
CreateNewChangelogEntry
CreateNewChangelogEntry aggregates all incoming PR files for release and includes direct commits
cmd/generate_changelog/internal/changelog/processing.go:126
↓ 1 callers
Function
CustomHelpHandler
CustomHelpHandler handles help output with translations
internal/cli/help.go:159
↓ 1 callers
Method
Delete
(name string)
internal/plugins/db/fsdb/storage.go:70
↓ 1 callers
Method
DirectlyGetModels
DirectlyGetModels is used to fetch models directly from the API when the standard OpenAI SDK method fails due to a nonstandard format.
internal/plugins/ai/openai_compatible/direct_models_call.go:11
↓ 1 callers
Function
ExtractCitations
ExtractCitations extracts web citations from grounding metadata.
internal/plugins/ai/geminicommon/geminicommon.go:98
↓ 1 callers
Method
ExtractText
ExtractText exposes the shared Responses API text extraction logic so other vendors can reuse Fabric's response formatting and citation handling.
internal/plugins/ai/openai/openai.go:428
↓ 1 callers
Method
FetchAllMergedPRs
FetchAllMergedPRs fetches all merged PRs using GitHub's search API This is much more efficient than fetching PRs individually
cmd/generate_changelog/internal/github/client.go:249
↓ 1 callers
Method
FetchAllMergedPRsGraphQL
FetchAllMergedPRsGraphQL fetches all merged PRs with their commits using GraphQL This is the ultimate optimization - gets everything in ~5-10 API call
cmd/generate_changelog/internal/github/client.go:328
↓ 1 callers
Method
FetchAndSavePlaylist
FetchAndSavePlaylist fetches all videos in a playlist and saves them to a CSV file.
internal/tools/youtube/youtube.go:678
← previous
next →
301–400 of 1,348, ranked by callers