mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-19 01:56:37 +08:00
* Updated relay/channel/gemini package to use gin-gonic/gin for routing * Added timeouts, environment variable for proxy, and error handling for HTTP clients in relay/util/init.go * Improved error handling, URL path cases, and channel selection logic in middleware/distributor.go * Added Content-Type header, closed request bodies, and added context to requests in relay/channel/common.go * Upgraded various dependencies in go.mod * Modified the GetRequestURL method in relay/channel/gemini/adaptor.go to include a "key" parameter in the URL and set a default version of "v1beta" * Added io and net/http packages in relay/channel/gemini/adaptor.go and relay/channel/gemini/main.go * Added a struct for GeminiStreamResp and modified response handling in relay/channel/gemini/main.go * Imported packages for io and net/http added, gin-gonic/gin package added, and error handling improved in relay/channel/gemini/main.go |
||
---|---|---|
.. | ||
blacklist | ||
config | ||
env | ||
helper | ||
image | ||
logger | ||
message | ||
constants.go | ||
crypto.go | ||
custom-event.go | ||
database.go | ||
embed-file-system.go | ||
gin.go | ||
group-ratio.go | ||
init.go | ||
model-ratio.go | ||
random.go | ||
rate-limit.go | ||
redis.go | ||
utils.go | ||
validate.go | ||
verification.go |