mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
Update flagging.go
This commit is contained in:
parent
9d8140ee5f
commit
59ec1e034e
@ -161,7 +161,7 @@ func containsAny(prompt string, patterns []string) (bool, string) {
|
||||
// requestBlockedError returns an error indicating that the request was blocked, including the trace ID.
|
||||
func requestBlockedError(ctx context.Context) error {
|
||||
traceID := trace.FromContext(ctx).SpanContext().TraceID().String()
|
||||
return errors.Errorf("We blocked your request because we detected your prompt to be against our Acceptable Use Policy (https://sourcegraph.com/terms/aup). If you think this is a mistake, please contact support@sourcegraph.com and reference this ID: %s", traceID)
|
||||
return errors.Errorf("We blocked your request because we detected your prompt to be against our Acceptable Use Policy (https://sourcegraph.com/terms/aup). Try again by removing any phrases that may violate our AUP. If you think this is a mistake, please contact support@sourcegraph.com and reference this ID: %s", traceID)
|
||||
}
|
||||
|
||||
// PromptRecorder implementations should save select completions prompts for
|
||||
|
||||
Loading…
Reference in New Issue
Block a user