1
0
mirror of https://github.com/fumiama/deepinfra.git synced 2026-06-10 21:16:55 +08:00

init: add codes

This commit is contained in:
源文雨
2025-02-14 15:34:05 +09:00
parent 4d4f1f5cb7
commit 507e407127
6 changed files with 184 additions and 0 deletions

View File

@@ -1,2 +1,15 @@
# deepinfra
Call OpenAI compatible APIs, originally designed for DeepInfra.
## Quick Start
```go
api := NewAPI(APIDeepInfra, "PUT YOUR API KEY HERE")
txt, err := api.Request(model.NewDeepSeek(0.7, 0.9, 1024).
System("Be a good assistant.").User("Hello"),
)
if err != nil {
panic(err)
}
fmt.Println(txt)
// Hello! How can I assist you today?
```