Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(mistral): update safe_mode property and max temperature in ChatCompletionRequest #300

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

kndpt
Copy link
Contributor

@kndpt kndpt commented Jan 18, 2024

Description:

The request body schema for Chat Completion changed.

  • We use now safe_prompt instead of safe_mode property.
  • The max temperature is now 1 instead of 2.

@davidmigloz

I have a big doubt about the "refactor" I chose for the PR. Because it's not a bug. More of a small breaking change.

@kndpt kndpt changed the title refactor(mistral): update safe_mode property and max temperature in C… refactor(mistral): update safe_mode property and max temperature in ChatCompletionRequest Jan 18, 2024
@kndpt kndpt marked this pull request as ready for review January 18, 2024 21:44
Copy link
Owner

@davidmigloz davidmigloz left a comment

Choose a reason for hiding this comment

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

Thanks again for the PR!

I've added a couple of comments. Basically:

  • The generated files have been generated in the wrong folder
  • We don't need to update the version / release notes manually

The changes in the OpenAPI spec look good, so as soon as we fix those couple of things we can merge it 🙂

examples/docs_examples/pubspec.lock Outdated Show resolved Hide resolved
packages/mistralai_dart/CHANGELOG.md Outdated Show resolved Hide resolved
packages/mistralai_dart/oas/lib/src/generated/client.dart Outdated Show resolved Hide resolved
packages/mistralai_dart/pubspec.yaml Outdated Show resolved Hide resolved
Copy link
Owner

@davidmigloz davidmigloz left a comment

Choose a reason for hiding this comment

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

It's perfect now, thank you very much!

@davidmigloz davidmigloz merged commit 1a4ccd1 into davidmigloz:main Jan 19, 2024
1 check passed
@davidmigloz davidmigloz added this to the v0.4.0 milestone Jan 19, 2024
@davidmigloz davidmigloz added c:chat-models Chat models. p:mistralai_dart mistralai_dart package. p:langchain_mistralai langchain_mistralai package. labels Jan 19, 2024
@davidmigloz
Copy link
Owner

KennethKnudsen97 pushed a commit to KennethKnudsen97/langchain_dart that referenced this pull request Apr 22, 2024
…migloz#300)

- `safe_mode` was renamed to `safe_prompt`
- The max temperature is now 1 instead of 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:chat-models Chat models. p:langchain_mistralai langchain_mistralai package. p:mistralai_dart mistralai_dart package.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants