Skip to content

fix: text analysis config and docs#472

Open
manuelporrasojeda wants to merge 7 commits into
masterfrom
fix/assert_text_criteria_doc
Open

fix: text analysis config and docs#472
manuelporrasojeda wants to merge 7 commits into
masterfrom
fix/assert_text_criteria_doc

Conversation

@manuelporrasojeda

Copy link
Copy Markdown
Contributor
  • Add Documentation to assert_text_analysis.
  • Include Azure configuration from config if exist.

Comment thread docs/ai_utils.rst
model_name="gpt-4o-mini", # optional
azure=False # set True for Azure OpenAI
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

después de Usage, añade una sección de Configuration, igual que en 'Text Similarity', para poner las variables de configuración

Comment thread docs/ai_utils.rst
OPENAI_API_VERSION=<your_api_version>

.. code-block:: text
[AI]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread docs/ai_utils.rst Outdated
.. code-block:: text
[AI]
text_similarity_method: azure_openai
sentence_transformers_model: all-mpnet-base-v2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esta se podría quitar de este ejemplo

Comment thread toolium/utils/ai_utils/openai.py Outdated
if value:
kwargs.setdefault(key, value)
else:
for key in ('openai_api_key', 'openai_endpoint', 'openai_version', 'openai_deployment'):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pero estos parametros no existen en el cliente de OpenAI , no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toda la razón! ya pongo los buenos

Comment thread docs/ai_utils.rst Outdated
Co-authored-by: Pablo Guijarro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants