sdk-go/v3モジュールをインストールしてください。
ローカルラッパーpackages/sdk/sdk-go/index.goが現在公開しているメソッド:
GenerateText(...)GenerateResponse(...)GenerateEmbedding(...)GenerateModeration(...)CreateSpeech(...),CreateTranscription(...),CreateTranslation(...)CreateAnthropicMessage(...)GetModels(...)GetModelEndpointCapabilities(...),CheckModelParameters(...)ListOrganisations(...)ListPricingModels(...)CalculatePricing(...)ListApiKeys(...)CreateApiKey(...),UpdateApiKey(...),DeleteApiKey(...)GetApiKey(...)ListWorkspaces(...),GetWorkspace(...),CreateWorkspace(...),UpdateWorkspace(...),DeleteWorkspace(...)GetCurrentApiKey(...)ListEndpoints(...)ListProviders(...)GetAnalytics(...),GetCredits(...),GetActivity(...)CreateBatch(...),RetrieveBatch(...),CancelBatch(...)GetAsyncJobWebSocketURL(...),GetBatchWebSocketURL(...),GetVideoWebSocketURL(...),client.AsyncJobs.WebSocketURL(...)ListFiles(...),RetrieveFile(...),RetrieveFileContent(...)RetrieveVideoContent(...),GetVideoDownloadURL(...)GetGeneration(...)Health(...)GetModelDeprecationInfo(...),ValidateModel(...)CreateImage(...),CreateImageEdit(...)GenerateVideo(...),GetVideo(...),CancelVideo(...),DeleteVideo(...)ListVideoModels(...),ListVideos(...)
packages/sdk/sdk-go/src/gen内の生成済みクライアントを直接使います。
CheckModelParameters は現在のプロバイダールートのメタデータを使って、各パラメーターを supported、partial、unsupported、unknown のいずれかとして示し、公開された値と範囲を検証して、パラメーターの組み合わせ全体を受け入れるルートを返します。