A Go package for interacting with AI language models from OpenAI and TogetherAI.
- OpenAI Chat Completion: Send prompts to OpenAI's GPT-3.5 model and receive responses.
- TogetherAI Inference: Post requests to TogetherAI's endpoint and get language model inferences.
go get github.com/lifsys/onepass
go get github.com/sashabaranov/go-openai
response, err := Openai_call(systemMessage, userPrompt, modelName)
systemMessage
: A string representing the system's message.userPrompt
: The user's prompt to the AI.modelName
: The model to use for the completion (optional).
response, err := Togetherai_call(systemMessage, userPrompt)
systemMessage
: A string representing the system's message.userPrompt
: The user's prompt to the AI.
Set up your API keys for OpenAI and TogetherAI using the onepass
package.
Specify your license here.
Instructions for how to contribute to the project.
Contact information for support.
List of contributors.
Please replace placeholders with actual information about your package, such as the correct installation commands, license, and contact details.