Class: RubyLLM::Providers::Mistral::ChatCompletions
- Inherits:
-
RubyLLM::Protocols::ChatCompletions
- Object
- RubyLLM::Protocol
- RubyLLM::Protocols::ChatCompletions
- RubyLLM::Providers::Mistral::ChatCompletions
- Includes:
- RubyLLM::Protocols::Mistral::MultiCompletion, Chat, Embeddings, Media, Models, OCR, Speech, Transcription
- Defined in:
- lib/ruby_llm/providers/mistral/chat_completions.rb,
lib/ruby_llm/providers/mistral/chat_completions/batches.rb
Overview
Mistral's dialect of the Chat Completions API.
Defined Under Namespace
Modules: Batches
Constant Summary
Constants included from RubyLLM::Protocols::Mistral::MultiCompletion
RubyLLM::Protocols::Mistral::MultiCompletion::SERVER_TOOL_ALIASES
Constants included from Transcription
Constants included from Models
Constants included from Chat
RubyLLM::Providers::Mistral::Chat::PROMPT_CACHE_OPTIONS
Instance Attribute Summary
Attributes inherited from RubyLLM::Protocol
#config, #connection, #model, #provider
Method Summary
Methods included from RubyLLM::Protocols::Mistral::MultiCompletion
append_multi_calls, append_multi_content, build_multi_chunk, format_message_group, multi_content, multi_messages, multi_pending_calls, multi_response, multi_usage, parse_completion_body, parse_multi_message, parse_multi_steps, server_tool_aliases, stream_response
Methods included from RubyLLM::Protocols::Mistral::Content
parse_conversation_citation, parse_conversation_content, parse_conversation_file, parse_conversation_parts
Methods included from Transcription
build_transcription_chunk, #render_transcription_options, render_transcription_payload, transcription_duration
Methods included from Speech
parse_speech_response, render_speech_payload, stream_speech
Methods included from OCR
ocr_data_uri, ocr_document_part, ocr_url, parse_ocr_response, render_ocr_payload
Methods included from Models
capabilities_from, embedding_model?, metadata_from, modalities_from, models_dev_alias, models_url, parse_list_models_response
Methods included from Media
format_content, format_document, format_image
Methods included from Embeddings
embedding_url, parse_embedding_response, render_embedding_payload
Methods included from Chat
append_formatted_content, build_thinking_blocks, build_tool_choice, format_cache_option_keys, format_message_content, format_role, format_thinking, normalize_required_tool_choice, openai_prompt_caching?, prompt_cache_options, prompt_cache_params, render_payload
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