1
0
mirror of https://github.com/fumiama/deepinfra.git synced 2026-06-05 00:32:46 +08:00

feat: add Google GenAI API

This commit is contained in:
源文雨
2025-03-30 01:48:52 +09:00
parent bf0f65bcaa
commit db7712b6d2
7 changed files with 153 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ Call OpenAI compatible APIs, originally designed for DeepInfra.
## Quick Start
```go
api := NewAPI(APIDeepInfra, "PUT YOUR API KEY HERE")
api := NewAPI(OpenAIDeepInfra, "PUT YOUR API KEY HERE")
txt, err := api.Request(model.NewOpenAI(model.ModelDeepDeek, model.SeparatorThink, 0.7, 0.9, 1024).
System("Be a good assistant.").User("Hello"),
)