From 9e0a7e594d10fd718dd7910fc54c7cd0fb962b26 Mon Sep 17 00:00:00 2001 From: Steve White Date: Wed, 29 Jan 2025 17:00:59 -0600 Subject: [PATCH] clineruels and go.sum got left out. --- .clinerules | 48 +----------------------------------------------- go.sum | 2 ++ 2 files changed, 3 insertions(+), 47 deletions(-) diff --git a/.clinerules b/.clinerules index 8c96197..39c8684 100644 --- a/.clinerules +++ b/.clinerules @@ -1,47 +1 @@ -## Here are the api signatures for arxiva -### FetchPapers(startDate, endDate, query string, maxResults int) ([]Paper, error) -startDate: Start date in format "YYYYMMDD" -endDate: End date in format "YYYYMMDD" -query: Search query -maxResults: Maximum number of results (1-2000) -Fetches papers from arXiv API - -### SaveToFile(papers []Paper, startDate, endDate, query string) error -papers: Array of Paper structs -startDate: Start date in format "YYYYMMDD" -endDate: End date in format "YYYYMMDD" -query: Search query -Saves papers to a JSON file - -JSON file is named "YYYMMDD-YYYYMMDD-query.json" (where YYYYMMDD is start date and YYYYMMDD is end date and query is search query) - -## here is the API signature for paperprocessor: - -### ProcessFile -`func ProcessFile(inputPath, outputPath, criteriaPath string, config Config, debug bool) error` - -Processes papers from input JSON file and writes results to output JSON file - -Parameters: -- inputPath: Path to input JSON file containing papers array -- outputPath: Path to write processing results JSON -- criteriaPath: Path to text file with evaluation criteria -- config: Configuration settings for API and processing -- debug: Enable debug logging when true - -Returns: -- error: Processing error or nil if successful - -You create config like this: - config := paperprocessor.Config{ - APIEndpoint: "http://localhost:1234/v1/chat/completions", - APIKey: apiKey, - Model: "qwen2-7b-instruct", - RequestDelay: 2 * time.Second, // 2 second delay between requests - - -## Here is the usage for paperformatter: -err := paperformatter.FormatPapers("input.json", "output.md") -if err != nil { - log.Fatal(err) -} +After all major changes, update git with an informative commit message. \ No newline at end of file diff --git a/go.sum b/go.sum index 20c7cf7..9d0904d 100644 --- a/go.sum +++ b/go.sum @@ -6,3 +6,5 @@ gitea.r8z.us/stwhite/paperprocessor v0.1.8 h1:pV810JZQFhuKcle4ix7stUz12LZNIgFCVW gitea.r8z.us/stwhite/paperprocessor v0.1.8/go.mod h1:0wHe7XjtQICFrPKbO53SVrUiVw9yi8GOGo9J7znpo+E= github.com/go-chi/chi/v5 v5.0.11 h1:BnpYbFZ3T3S1WMpD79r7R5ThWX40TaFB7L31Y8xqSwA= github.com/go-chi/chi/v5 v5.0.11/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-chi/cors v1.2.1 h1:xEC8UT3Rlp2QuWNEr4Fs/c2EAGVKBwy/1vHx3bppil4= +github.com/go-chi/cors v1.2.1/go.mod h1:sSbTewc+6wYHBBCW7ytsFSn836hqM7JxpglAy2Vzc58=