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

chapter 3: openai function is not fully mentioned #3

Closed
andysingal opened this issue Sep 14, 2023 · 3 comments
Closed

chapter 3: openai function is not fully mentioned #3

andysingal opened this issue Sep 14, 2023 · 3 comments

Comments

@andysingal
Copy link

    response = openai.Completion.create(
      model=model,
      prompt=prompt,
      max_tokens=256,
      **kwargs
    )
    answer = response.choices[0].text
    if not suppress:
        print(f'PROMPT:\n------\n{prompt}\n------\nRESPONSE\n------\n{answer}')
    else:
        return answer
@sinanuozdemir
Copy link
Owner

Not sure what the question is here?

@andysingal
Copy link
Author

andysingal commented Sep 16, 2023 via email

@sinanuozdemir
Copy link
Owner

Ah thanks! I just fixed it :)

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

No branches or pull requests

2 participants