endpoint

package
v0.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package endpoint 解析和展开模型 API 的动态请求路径。

Index

Constants

View Source
const (
	DefaultGeminiPath     = "/v1beta/models/{model}:{action}"
	GenerateContent       = "generateContent"
	StreamGenerateContent = "streamGenerateContent"
)

Variables

This section is empty.

Functions

func GeminiPath

func GeminiPath(template, model, action string) (string, error)

GeminiPath 将映射后的模型和生成动作填入端点路径,保留配置中的查询参数。

func ParseGeminiPath

func ParseGeminiPath(path string) (model string, stream bool, ok bool)

ParseGeminiPath 读取 v1/v1beta 生成请求的模型和流式动作。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL