Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedIPRanges = []string{
"160.79.104.0/23",
"2607:6bc0::/48",
}
AllowedIPRanges are the IP ranges that Anthropics services live on.
View Source
var SupportedRegions = []string{}/* 159 elements not displayed */
List of supported regions by the Anthropics API.
Functions ¶
func GetChatPrompt ¶
GetChatPrompt constructs a prompt string from a series of messages in a chat conversation.
func IsIPAllowed ¶
IsIPAllowed checks if the provided IP address is within the allowed IP ranges.
func IsRegionSupported ¶
IsRegionSupported checks if the provided region is supported by the Anthropics API.
Types ¶
Click to show internal directories.
Click to hide internal directories.