docs: enforce sentence-case in headers, subheadings and list items
This commit is contained in:
@@ -31,7 +31,7 @@ var (
|
||||
)
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// OpenAI API Data Structures
|
||||
// OpenAI API data structures
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type ModelItem struct {
|
||||
@@ -155,7 +155,7 @@ type StreamResponse struct {
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// SOCKS5 Proxy Client (RFC 1928 / RFC 1929)
|
||||
// SOCKS5 proxy client (RFC 1928 / RFC 1929)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type SOCKS5Config struct {
|
||||
@@ -336,7 +336,7 @@ func DialSOCKS5(ctx context.Context, proxyURL, targetAddr string) (net.Conn, err
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Helper Utilities
|
||||
// Helper utilities
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
func GenerateUUID() string {
|
||||
@@ -430,7 +430,7 @@ func EffectiveUserAgent(r *http.Request) string {
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Tool and Message Processing
|
||||
// Tool and message processing
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
func BuildToolInstruction(tools []Tool) string {
|
||||
@@ -832,7 +832,7 @@ func ExtractThinking(content string) (string, string) {
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Response Framing & Streamer
|
||||
// Response framing & streamer
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type FinalOutput struct {
|
||||
@@ -942,7 +942,7 @@ func sendStreamChunk(w http.ResponseWriter, flusher http.Flusher, completionID s
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Stateful Thinking Tag Filter for Streaming
|
||||
// Stateful thinking tag filter for streaming
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type StreamThinkingFilter struct {
|
||||
@@ -1030,7 +1030,7 @@ func (f *StreamThinkingFilter) Flush(onContent func(string), onReasoning func(st
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Stateful Tool Call Tag Filter for Streaming
|
||||
// Stateful tool call tag filter for streaming
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type StreamToolCallFilter struct {
|
||||
@@ -1134,7 +1134,7 @@ func (f *StreamToolCallFilter) Flush(onContent func(string), onToolCall func(Too
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Universal Gradio Space Inspector & Metadata Discovery
|
||||
// Universal Gradio space inspector & metadata discovery
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type GradioParamInfo struct {
|
||||
@@ -1575,7 +1575,7 @@ func InspectSpace(client *http.Client, rawURL, userAgent string) (*SpaceDiscover
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Universal Gradio Gateway Engine
|
||||
// Universal Gradio gateway engine
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type GradioJoinResponse struct {
|
||||
@@ -2409,7 +2409,7 @@ func (g *GradioGateway) ExecuteChatCompletion(w http.ResponseWriter, r *http.Req
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// HTTP Routes & Main Server
|
||||
// HTTP routes & main server
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user