Categorygithub.com/promptc/openai-scheduler
modulepackage
0.0.3
Repository: https://github.com/promptc/openai-scheduler.git
Documentation: pkg.go.dev

# README

OpenAI Scheduler

This is a simple scheduler for OpenAI Client in Go.

It contains auto detected OpenAI client status and handle the wrong status.

Usage

package main

import (
    "github.com/promptc/openai-scheduler"
)

var scheduler *openai_scheduler.Scheduler

func main() {
	tokens := []string{"token1", "token2"}
	scheduler = openai_scheduler.NewScheduler(tokens)
	scheduler.StartDaemon()
	// Some codes
}

func feedPrompt() {
	gpt := scheduler.GetClient()
	// Do codes just like do on *openai.Client
}

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author