Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

40 line
2.8 KiB

  1. #jinja2: lstrip_blocks: True
  2. base_url: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_base_url | to_json }}
  3. api_key: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_api_key | to_json }}
  4. {% if matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_enabled %}
  5. text_generation:
  6. model_id: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_model_id | to_json }}
  7. prompt: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_prompt | to_json }}
  8. temperature: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_temperature | to_json }}
  9. {% if matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_response_tokens %}
  10. max_response_tokens: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_response_tokens | int | to_json }}
  11. {% endif %}
  12. {% if matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_completion_tokens %}
  13. max_completion_tokens: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_completion_tokens | int | to_json }}
  14. {% endif %}
  15. max_context_tokens: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_context_tokens | int | to_json }}
  16. {% endif %}
  17. {% if matrix_bot_baibot_config_agents_static_definitions_openai_config_speech_to_text_enabled %}
  18. speech_to_text:
  19. model_id: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_speech_to_text_model_id | to_json }}
  20. {% endif %}
  21. {% if matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_enabled %}
  22. text_to_speech:
  23. model_id: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_model_id | to_json }}
  24. voice: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_voice | to_json }}
  25. speed: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_speed | float }}
  26. response_format: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_response_format | to_json }}
  27. {% endif %}
  28. {% if matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_enabled %}
  29. image_generation:
  30. model_id: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_model_id | to_json }}
  31. style: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_style | to_json }}
  32. size: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_size | to_json }}
  33. quality: {{ matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_quality | to_json }}
  34. {% endif %}