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

Minimal implementation of the code to generate completions. #32

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

jlewi
Copy link
Owner

@jlewi jlewi commented Apr 8, 2024

  • This is a pretty minimal implementation.

  • The entire response from the AI is added; i.e. we potentially add multiple blocks to the document. I'm not sure that's the best UX.

  • Implement some OpenAI utilities

    • Add a helper function to initiate OpenAI clients
    • Parse OpenAI errors for common cases like context length exceeded

* This is a pretty minimal implementation.
* The entire response from the AI is added; i.e. we potentially
  add multiple blocks to the document. I'm not sure that's the best UX.

* Implement some OpenAI utilities

  * Add a helper function to initiate OpenAI clients
  * Parse OpenAI errors for common cases like context length exceeded
@jlewi jlewi enabled auto-merge (squash) April 8, 2024 21:04
@jlewi jlewi merged commit 929a73e into main Apr 8, 2024
1 check passed
@jlewi jlewi deleted the jeremy/generate2 branch April 8, 2024 21:05
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.

1 participant