View Source WiseGPTEx.OpenAIHTTPClient (WiseGPTEx v0.3.0)

Documentation for WiseGPTEx.OpenAIHTTPClient.

This module contains functions to interact with the OpenAI API to get completions with reasoning and determine the best completion. It is used internally by the WiseGPTEx module and is not intended to be called directly by users.

The main functions in this module are:

Link to this section Summary

Link to this section Functions

Link to this function

get_best_completion(message, completions, opts \\ [])

View Source
@spec get_best_completion(binary(), list(), Keyword.t()) ::
  {:ok, binary()} | {:error, any()}
Link to this function

get_completions_with_reasoning(message, opts \\ [])

View Source
@spec get_completions_with_reasoning(binary(), Keyword.t()) ::
  {:ok, list()} | {:error, map()}
Link to this function

get_resolver_completion(message, completions, best_completion, opts \\ [])

View Source
@spec get_resolver_completion(binary(), list(), binary(), Keyword.t()) ::
  {:ok, binary()} | {:error, any()}