Class: RubyLLM::Providers::VertexAI::LiveTranscription
- Inherits:
-
RubyLLM::Protocols::Gemini::LiveTranscription
- Object
- RubyLLM::Protocol
- RubyLLM::Protocols::Gemini::LiveTranscription
- RubyLLM::Providers::VertexAI::LiveTranscription
- Defined in:
- lib/ruby_llm/providers/vertexai/live_transcription.rb
Overview
:nodoc: all
Instance Attribute Summary
Attributes inherited from RubyLLM::Protocol
#config, #connection, #model, #provider
Instance Method Summary collapse
- #transcription_model_name(model) ⇒ Object
- #validate_transcription_request ⇒ Object
- #websocket_service ⇒ Object
Methods inherited from RubyLLM::Protocols::Gemini::LiveTranscription
#collect_transcription, #parse_transcription_events, #process_transcription_event, #render_transcription_setup, #send_transcription_audio, #transcribe, #transcription_audio, #transcription_websocket_url, #validate_transcription_setup
Methods inherited from RubyLLM::Protocol
abstract, #animate_later, #apply_compaction, #apply_compaction_headers, #apply_end_user, #cache_content, #compact, #complete, #count_tokens, #delete_cache, #embed, #extend_cache, #find_cache, #initialize, #list_models, #moderate, #ocr, #paint, #parse_error, #parse_image_responses, #post_image, #post_video, #preprocess_message, #raise_transcription_streaming_unsupported, #refresh_video_job, #render, #render_embedding, #render_transcription_options, #render_video_extension_payload, #rerank, #server_tool_aliases, #speak, #stream_speech, #stream_speech_response, #stream_transcription, #supports_embedding_media?, #tokenize, #tool_approval_response, #transcribe, #video_extension_attachment, #video_extension_url, #video_request_url
Methods included from RubyLLM::Protocol::BinaryStreaming
Methods included from RubyLLM::Protocol::Streaming
build_on_data_handler, build_stream_error_response, error_chunk?, failed_http_status, faraday_1?, handle_data, handle_error_chunk, handle_error_event, handle_failed_response, handle_json_error_chunk, handle_sse, handle_stream, json_error_payload?, parse_error_from_json, parse_streaming_error, process_stream_chunk, raise_stream_error, stream_events, stream_response, stream_state
Constructor Details
This class inherits a constructor from RubyLLM::Protocol
Instance Method Details
#transcription_model_name(model) ⇒ Object
14 15 16 |
# File 'lib/ruby_llm/providers/vertexai/live_transcription.rb', line 14 def transcription_model_name(model) @provider.model_path(model) end |
#validate_transcription_request ⇒ Object
7 8 9 10 11 12 |
# File 'lib/ruby_llm/providers/vertexai/live_transcription.rb', line 7 def validate_transcription_request(...) super return if @config.vertexai_location == 'global' raise ArgumentError, 'Vertex AI Live transcription requires vertexai_location = "global"' end |
#websocket_service ⇒ Object
18 19 20 |
# File 'lib/ruby_llm/providers/vertexai/live_transcription.rb', line 18 def websocket_service 'google.cloud.aiplatform.v1beta1.LlmBidiService/BidiGenerateContent' end |