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

Fix temperature calculation for llm-openai #61

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

ultronozm
Copy link
Contributor

  • llm-openai.el (llm-provider-chat-request): Fix temperature calculation.

For the llm package, temperatures range from 0 to 1. For OpenAI, they range from 0 to 2. For this reason, we should multiply rather than divide by 2 to translate from llm temperatures to OpenAI temperatures.

* llm-openai.el (llm-provider-chat-request): Fix temperature
calculation.

For the llm package, temperatures range from 0 to 1.  For OpenAI, they
range from 0 to 2.  For this reason, we should multiply rather than
divide by 2 to translate from llm temperatures to OpenAI temperatures.
@ahyatt ahyatt merged commit ecc1f5f into ahyatt:main Aug 14, 2024
4 checks passed
cnsunyour added a commit to cnsunyour/llm that referenced this pull request Aug 14, 2024
* 'main' of github.com:ahyatt/llm:
  Fix temperature calculation for llm-openai (ahyatt#61)
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.

2 participants