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:
@@ -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"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user