Skip to content

Feat/impl openai provider#27

Open
pxp9 wants to merge 2 commits intomainfrom
feat/impl_openai_provider
Open

Feat/impl openai provider#27
pxp9 wants to merge 2 commits intomainfrom
feat/impl_openai_provider

Conversation

@pxp9
Copy link
Copy Markdown
Owner

@pxp9 pxp9 commented Mar 12, 2025

  • implements OpenAI provider
  • Test the provider generating the docs.
  • Document basics of the provider in guides section

@pxp9 pxp9 self-assigned this Mar 12, 2025
@pxp9 pxp9 requested a review from 0xCAB0 March 12, 2025 16:35
Comment on lines +25 to +30
temperature = Keyword.get(params, :temperature, 1)
top_p = Keyword.get(params, :top_p, 1)
max_completion_tokens = Keyword.get(params, :max_completion_tokens, 2048)

max_retries = Application.get_env(:lazy_doc, :max_retries, 1)
receive_timeout = Application.get_env(:lazy_doc, :receive_timeout, 15_000)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we create an abstract type or something that gives these parameters configured and the implementor only has to override those who wants to configure?
Or maybe just set them as global parameters outside of this function?

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