Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmiessler/Fabric
/ functions
Functions
1,442 in github.com/danielmiessler/Fabric
⨍
Functions
1,442
◇
Types & classes
227
↓ 2 callers
Method
buildMessageText
buildMessageText combines chat messages into a single prompt for Copilot.
internal/plugins/ai/copilot/copilot.go:213
↓ 2 callers
Function
buildPromptChatRequest
(p PromptRequest, language string)
internal/server/chat.go:243
↓ 2 callers
Function
captureInput
captureInput captures the input for a function call
internal/plugins/plugin_test.go:289
↓ 2 callers
Function
checkForAIError
(summary string)
cmd/generate_changelog/internal/changelog/generator.go:413
↓ 2 callers
Function
checkImageGenerationCompatibility
checkImageGenerationCompatibility warns if the model doesn't support image generation
internal/plugins/ai/openai/openai.go:101
↓ 2 callers
Method
configure
()
internal/tools/custom_patterns/custom_patterns.go:35
↓ 2 callers
Method
constructRequest
(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/dryrun/dryrun.go:102
↓ 2 callers
Function
convertMessageCommon
convertMessageCommon extracts common conversion logic
internal/plugins/ai/openai/message_conversion.go:14
↓ 2 callers
Method
convertToMarkdown
(file: File)
web/src/lib/services/PdfConversionService.ts:40
↓ 2 callers
Method
countPatternsInDirectory
countPatternsInDirectory counts the number of pattern directories in a given directory
internal/tools/patterns_loader.go:300
↓ 2 callers
Method
createChatRequest
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/ollama/ollama.go:162
↓ 2 callers
Method
createChatRequest
( userInput: string, systemPromptText?: string, isPattern: boolean = false, )
web/src/lib/services/ChatService.ts:244
↓ 2 callers
Method
createConversation
createConversation creates a new Copilot conversation.
internal/plugins/ai/copilot/copilot.go:235
↓ 2 callers
Function
createStorageAPI
(entityType: string)
web/src/lib/api/base.ts:61
↓ 2 callers
Function
create_pattern
Create a new pattern with necessary files and structure.
scripts/python_ui/streamlit.py:375
↓ 2 callers
Function
dedupInts
(ints []int)
cmd/generate_changelog/internal/git/walker.go:401
↓ 2 callers
Function
delete
(name: string)
web/src/lib/api/base.ts:75
↓ 2 callers
Function
detectSystemLocale
detectSystemLocale detects the system locale using standard Unix environment variables. Follows the POSIX priority order for locale environment variab
internal/i18n/locale.go:18
↓ 2 callers
Method
ensureInput
(pattern *Pattern)
internal/plugins/db/fsdb/patterns.go:88
↓ 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
Function
handleSetupAndServerCommands
handleSetupAndServerCommands handles setup and server-related commands Returns (handled, error) where handled indicates if a command was processed and
internal/cli/setup_server.go:14
↓ 2 callers
Method
initParticles
()
web/src/lib/components/ui/connections/ParticleSystem.ts:29
↓ 2 callers
Function
interpretPdfResult
(result: PdfProcessResult, fileName: string)
web/src/lib/services/PdfConversionService.ts:10
↓ 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:68
↓ 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
newInactiveVendorRegistry
(t *testing.T, defaultVendor, defaultModel string, vendor *testVendor)
internal/core/plugin_registry_test.go:313
↓ 2 callers
Function
newOllamaEngine
newOllamaEngine makes the engine but does not start it, which lets tests operate the routes. The address parameter is the /api/chat forward target, no
internal/server/ollama.go:225
↓ 2 callers
Function
newTraversalFixture
newTraversalFixture returns a storage entity in a temporary root and a marker file out of the entity directory. It also returns a check that fails the
internal/plugins/db/fsdb/storage_test.go:76
↓ 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:93
↓ 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
Method
postMessage
(data: { id: number; buffer: ArrayBuffer }, transfer: Transferable[])
web/src/lib/services/PdfConversionService.test.ts:108
↓ 2 callers
Function
randomBase64URL
(size int)
internal/plugins/ai/codex/oauth.go:278
↓ 2 callers
Function
rejectInvalidStorageName
rejectInvalidStorageName answers a 400 when name does not obey storage-name validation. An empty name passes, because the fields that this guards are
internal/server/storage.go:44
↓ 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
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
Function
symlinkContained
symlinkContained rejects an entry at path if the entry resolves, through symlinks, to a target outside absDir. A missing entry passes, because the lex
internal/plugins/db/fsdb/storage.go:224
↓ 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
Function
tokenNeedsRefresh
(jwt string, now time.Time)
internal/plugins/ai/codex/token.go:31
↓ 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
writeFileAtomic
(path string, content []byte)
internal/plugins/db/fsdb/db.go:169
↓ 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:592
↓ 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
← previous
next →
301–400 of 1,442, ranked by callers