Source code for genai.schema._endpoints
[docs]
class ApiKeyRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/api_key"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class ApiKeyRegenerateCreateEndpoint(ApiEndpoint):
path: str = "/v2/api_key/regenerate"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class EvaluationRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class EvaluationCreateEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class EvaluationExperimentRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/experiments"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class EvaluationExperimentCreateEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/experiments"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class EvaluationExperimentIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/experiments/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class EvaluationExperimentIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/experiments/{id}"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class EvaluationLimitRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/limits"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class EvaluationPreviewCreateEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/preview"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class EvaluationTemplateRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/templates"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class EvaluationTemplateIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/templates/{id}"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class EvaluationIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class EvaluationIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/{id}"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class EvaluationIdInstanceResultRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/evaluations/{id}/instance_results"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TextClassificationCreateEndpoint(ApiEndpoint):
path: str = "/v2/beta/text/classification"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class TextRerankCreateEndpoint(ApiEndpoint):
path: str = "/v2/beta/text/rerank"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class TextSentenceSimilarityCreateEndpoint(ApiEndpoint):
path: str = "/v2/beta/text/sentence-similarity"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class TimeSerieForecastingCreateEndpoint(ApiEndpoint):
path: str = "/v2/beta/time_series/forecasting"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class TimeSerieLimitRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/beta/time_series/limits"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class DeploymentRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/deployments"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class DeploymentCreateEndpoint(ApiEndpoint):
path: str = "/v2/deployments"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class DeploymentIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/deployments/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class DeploymentIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/deployments/{id}"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class FileRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/files"
method: str = "GET"
version: str = "2024-05-13"
[docs]
class FileCreateEndpoint(ApiEndpoint):
path: str = "/v2/files"
method: str = "POST"
version: str = "2024-05-13"
[docs]
class FileIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/files/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class FileIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/files/{id}"
method: str = "GET"
version: str = "2024-05-13"
[docs]
class FileIdPatchEndpoint(ApiEndpoint):
path: str = "/v2/files/{id}"
method: str = "PATCH"
version: str = "2023-11-22"
[docs]
class FileIdContentRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/files/{id}/content"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class FolderRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/folders"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class FolderCreateEndpoint(ApiEndpoint):
path: str = "/v2/folders"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class FolderIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/folders/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class FolderIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/folders/{id}"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class FolderIdPatchEndpoint(ApiEndpoint):
path: str = "/v2/folders/{id}"
method: str = "PATCH"
version: str = "2024-01-10"
[docs]
class FolderIdUpdateEndpoint(ApiEndpoint):
path: str = "/v2/folders/{id}"
method: str = "PUT"
version: str = "2023-11-22"
[docs]
class ModelRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/models"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class ModelIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/models/{id}"
method: str = "GET"
version: str = "2024-01-30"
[docs]
class PromptRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/prompts"
method: str = "GET"
version: str = "2024-03-19"
[docs]
class PromptCreateEndpoint(ApiEndpoint):
path: str = "/v2/prompts"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class PromptIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/prompts/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class PromptIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/prompts/{id}"
method: str = "GET"
version: str = "2024-03-19"
[docs]
class PromptIdPatchEndpoint(ApiEndpoint):
path: str = "/v2/prompts/{id}"
method: str = "PATCH"
version: str = "2024-03-19"
[docs]
class PromptIdUpdateEndpoint(ApiEndpoint):
path: str = "/v2/prompts/{id}"
method: str = "PUT"
version: str = "2024-03-19"
[docs]
class RequestRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/requests"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class RequestChatConversationIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/requests/chat/{conversation_id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class RequestChatConversationIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/requests/chat/{conversation_id}"
method: str = "GET"
version: str = "2024-03-19"
[docs]
class RequestIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/requests/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class RequestIdFeedbackRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/requests/{id}/feedback"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class RequestIdFeedbackCreateEndpoint(ApiEndpoint):
path: str = "/v2/requests/{id}/feedback"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class RequestIdFeedbackUpdateEndpoint(ApiEndpoint):
path: str = "/v2/requests/{id}/feedback"
method: str = "PUT"
version: str = "2023-11-22"
[docs]
class SystemPromptRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/system_prompts"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class SystemPromptCreateEndpoint(ApiEndpoint):
path: str = "/v2/system_prompts"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class SystemPromptIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/system_prompts/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class SystemPromptIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/system_prompts/{id}"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class SystemPromptIdUpdateEndpoint(ApiEndpoint):
path: str = "/v2/system_prompts/{id}"
method: str = "PUT"
version: str = "2023-11-22"
[docs]
class TagRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/tags"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TaskRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/tasks"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TextChatCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/chat"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class TextChatOutputCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/chat/output"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class TextChatStreamCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/chat_stream"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class TextEmbeddingCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/embeddings"
method: str = "POST"
version: str = "2024-04-15"
[docs]
class TextEmbeddingLimitRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/text/embeddings/limits"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TextExtractionLimitRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/text/extraction/limits"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TextGenerationCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/generation"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class TextGenerationComparisonCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/generation/comparison"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class TextGenerationLimitRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/text/generation/limits"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TextGenerationOutputCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/generation/output"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class TextGenerationIdFeedbackRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/text/generation/{id}/feedback"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TextGenerationIdFeedbackCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/generation/{id}/feedback"
method: str = "POST"
version: str = "2024-02-20"
[docs]
class TextGenerationIdFeedbackUpdateEndpoint(ApiEndpoint):
path: str = "/v2/text/generation/{id}/feedback"
method: str = "PUT"
version: str = "2024-02-20"
[docs]
class TextGenerationStreamCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/generation_stream"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class TextModerationCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/moderations"
method: str = "POST"
version: str = "2024-03-19"
[docs]
class TextTokenizationCreateEndpoint(ApiEndpoint):
path: str = "/v2/text/tokenization"
method: str = "POST"
version: str = "2024-01-10"
[docs]
class TuneRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/tunes"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TuneCreateEndpoint(ApiEndpoint):
path: str = "/v2/tunes"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class TuneFromFileCreateEndpoint(ApiEndpoint):
path: str = "/v2/tunes/import"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class TunePreflightCreateEndpoint(ApiEndpoint):
path: str = "/v2/tunes/preflight"
method: str = "POST"
version: str = "2023-11-22"
[docs]
class TuneIdDeleteEndpoint(ApiEndpoint):
path: str = "/v2/tunes/{id}"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class TuneIdRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/tunes/{id}"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TuneIdPatchEndpoint(ApiEndpoint):
path: str = "/v2/tunes/{id}"
method: str = "PATCH"
version: str = "2023-11-22"
[docs]
class TuneIdContentRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/tunes/{id}/content"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class TuneIdContentTypeRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/tunes/{id}/content/{type}"
method: str = "GET"
version: str = "2023-12-15"
[docs]
class TuningTypeRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/tuning_types"
method: str = "GET"
version: str = "2024-01-30"
[docs]
class UserDeleteEndpoint(ApiEndpoint):
path: str = "/v2/user"
method: str = "DELETE"
version: str = "2023-11-22"
[docs]
class UserRetrieveEndpoint(ApiEndpoint):
path: str = "/v2/user"
method: str = "GET"
version: str = "2023-11-22"
[docs]
class UserPatchEndpoint(ApiEndpoint):
path: str = "/v2/user"
method: str = "PATCH"
version: str = "2023-11-22"
[docs]
class UserCreateEndpoint(ApiEndpoint):
path: str = "/v2/user"
method: str = "POST"
version: str = "2023-11-22"