Repository navigation
UTC fix and use LLM APIs to generate challenges & posts - #376
Merged
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files☔ View full report in Codecov by Sentry. |
Collaborator
Author
|
This is very much a fun/exploration branch for now. I'm not sure how much sense this makes, or if the LLM functionality is even in the right place. And it needs a background worker to do properly (Which would also be useful on the global Sync btw) |
- Updating rpds-py (0.18.1 -> 0.19.0) - Updating certifi (2024.6.2 -> 2024.7.4) - Updating setuptools (70.2.0 -> 70.3.0) - Installing annotated-types (0.7.0) - Updating botocore (1.34.137 -> 1.34.143) - Installing pydantic-core (2.20.1) - Updating jsonschema (4.22.0 -> 4.23.0) - Installing pydantic (2.8.2) - Updating validators (0.29.0 -> 0.32.0) - Updating boto3 (1.34.137 -> 1.34.143) - Updating coverage (7.5.4 -> 7.6.0) - Installing flask-openapi3 (3.1.3)
Collaborator
Author
|
Tested in sandbox |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds AI magic pixie dust (details below) and updates the way UTC times are handled throughout the project. Thanks to Miguel Grinberg for guidance.
Further technical improvements include:
Incubating feature: LLM support
Let's jump on that AI bandwagon! When creating a project, you can tick a checkbox to generate your challenge from the Title and Summary. OpenAI compatible endpoints (e.g. Hugging Face), and proxies like LiteLLM and Ollama are supported. New settings you can use to set up your site:
LLM_API_KEY- (required) an API key of your LLM providerLLM_BASE_URL- if left blank, this uses the production OpenAI endpointLLM_MODEL- defaults to "gpt-3.5-turbo"The flow is inspired by Wagtail AI, datasette-chatgpt-plugin and a CKAN discussion thread. Ideas of further LLM applications welcome in our 💬 discussions
Example generated project: