Skip to content
Snippets Groups Projects

Added default model and provider for each operation type dynamically.

1 unresolved thread

Closes #3521901

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 120 120 ->save();
    121
    122 // Set some defaults.
    123 $this->aiProviderManager->defaultIfNone('chat', 'openai', 'gpt-4o');
    124 $this->aiProviderManager->defaultIfNone('chat_with_image_vision', 'openai', 'gpt-4o');
    125 $this->aiProviderManager->defaultIfNone('chat_with_complex_json', 'openai', 'gpt-4o');
    126 $this->aiProviderManager->defaultIfNone('text_to_image', 'openai', 'dall-e-3');
    127 $this->aiProviderManager->defaultIfNone('embeddings', 'openai', 'text-embedding-3-small');
    128 $this->aiProviderManager->defaultIfNone('text_to_speech', 'openai', 'tts-1-hd');
    129 $this->aiProviderManager->defaultIfNone('speech_to_text', 'openai', 'whisper-1');
    130 $this->aiProviderManager->defaultIfNone('moderation', 'openai', 'omni-moderation-latest');
    121 // Set the default provider and model for each operation type.
    122 foreach ($this->aiProviderManager->getOperationTypes() as $operation_type) {
    123 // Get available provider/model combinations for this operation.
    124 $model_options = $this->aiProviderManager->getSimpleProviderModelOptions($operation_type["id"]);
    125 unset($model_options[""]);
  • added 1 commit

    • da7b3b12 - Added default model and provider for each operation type dynamically.

    Compare with previous version

  • Prabhavathi Vanipenta left review comments

    left review comments

  • added 1 commit

    • bf2f30d4 - set defatl models using plugin.

    Compare with previous version

  • added 1 commit

    • 0fc13333 - Set gpt-4.1 for chat with tools operation type.

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Marcus Johansson approved this merge request

    approved this merge request

  • Marcus Johansson enabled automatic add to merge train when checks pass

    enabled automatic add to merge train when checks pass

  • Please register or sign in to reply
    Loading