1
0
mirror of https://github.com/fumiama/deepinfra.git synced 2026-06-05 00:32:46 +08:00
Go to file
2025-02-22 01:02:48 +09:00
2025-02-22 01:02:48 +09:00
2025-02-14 15:11:27 +09:00
2025-02-14 15:34:05 +09:00
2025-02-14 17:25:57 +09:00
2025-02-14 15:11:27 +09:00
2025-02-22 01:02:48 +09:00
2025-02-22 01:02:48 +09:00

deepinfra

Call OpenAI compatible APIs, originally designed for DeepInfra.

Quick Start

api := NewAPI(APIDeepInfra, "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"),
)
if err != nil {
    panic(err)
}
fmt.Println(txt)
// Hello! How can I assist you today?
Languages
Go 100%