package
0.0.0-20250219065129-52aed497bc00
Repository: https://github.com/infinilabs/coco-server.git
Documentation: pkg.go.dev
# Functions
ExtractToolParts extracts the tool parts from a message.
New returns a new OpenAI LLM.
WithAPIType passes the api type to the client.
WithAPIVersion passes the api version to the client.
WithBaseURL passes the OpenAI base url to the client.
WithCallback allows setting a custom Callback Handler.
WithEmbeddingModel passes the OpenAI model to the client.
WithHTTPClient allows setting a custom HTTP client.
WithModel passes the OpenAI model to the client.
WithOrganization passes the OpenAI organization to the client.
WithResponseFormat allows setting a custom response format.
WithToken passes the OpenAI API token to the client.
# 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
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
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
nolint:lll.
No description provided by the author
nolint:gochecknoglobals.
# Type aliases
No description provided by the author
No description provided by the author
Option is a functional option for the OpenAI client.
ResponseFormat is the response format for the OpenAI client.
ResponseFormatJSONSchema is the JSON Schema response format in structured output.
ResponseFormatJSONSchemaProperty is the JSON Schema property in structured output.