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

Release/v1 #40

Merged
merged 4 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ updates:
directory: "/" # Location of the go.mod file
schedule:
interval: "weekly" # Options: daily, weekly, monthly
open-pull-requests-limit: 5

# Configuration for Python dependencies
- package-ecosystem: "pip"
directory: "/python" #
directory: "./python" #
schedule:
interval: "weekly" # Options: daily, weekly, monthly
open-pull-requests-limit: 5
29 changes: 0 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,32 +48,3 @@ jobs:
body_path: ./release_notes.md
draft: false
prerelease: false

# - name: Create ZIP Archive
# run: zip -r source_code.zip .

# - name: Create TAR.GZ Archive
# run: tar -czvf source_code.tar.gz .

# - name: Upload ZIP Archive
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./source_code.zip
# asset_name: source_code.zip
# asset_content_type: application/zip

# - name: Upload TAR.GZ Archive
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./source_code.tar.gz
# asset_name: source_code.tar.gz
# asset_content_type: application/gzip

# - name: Delete release_notes file
# run: rm release_notes.md
4 changes: 2 additions & 2 deletions packages/grok/chatcompletion.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func ChatCompletion(w http.ResponseWriter, r *http.Request, cfg *config.APIConfi
}

// Get the response message content from the first choice
// new release for grok response

// new release for grok response
// Respond with JSON containing the response message
utils.RespondWithJSON(w, http.StatusOK, response)
}
2 changes: 1 addition & 1 deletion packages/replicate/generatevideos/handlevideogeneration.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func processHighVideoInput(ctx context.Context, r *http.Request, cfg *config.API
utils.SetIntValue(r.FormValue("batch_size"), &HighVideoGenerationParams.BatchSize)
utils.SetBoolValue(r.FormValue("remove_watermark"), &HighVideoGenerationParams.RemoveWatermark)
// Handle initial video file
videoFile, videoFileHeader, err := r.FormFile("video")
videoFile, videoFileHeader, err := r.FormFile("init_video")
if err == nil {
repFile, err := rep.RequestFileToReplicateFile(ctx, videoFileHeader, cfg.ReplicateAPIKey)
if err != nil {
Expand Down
5 changes: 1 addition & 4 deletions packages/replicate/stt/handlestt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ import (
"github.com/kingmariano/omnicron/config"
rep "github.com/kingmariano/omnicron/packages/replicate"
"github.com/kingmariano/omnicron/utils"
replicate "github.com/replicate/replicate-go"
"log"
"github.com/replicate/replicate-go"
"net/http"
)

Expand All @@ -50,7 +49,6 @@ func processSTTModelInput(STTModel *rep.ReplicateModel, ctx context.Context, r *
}

func processLowSTTInput(ctx context.Context, r *http.Request, cfg *config.APIConfig) (replicate.PredictionInput, error) {
log.Println("This is low STT")
var LowSTTParams rep.LowSTTParams
err := r.ParseMultipartForm(10 << 20) // 10MB
if err != nil {
Expand Down Expand Up @@ -90,7 +88,6 @@ func processLowSTTInput(ctx context.Context, r *http.Request, cfg *config.APICon

}
func processHighSTTInput(ctx context.Context, r *http.Request, cfg *config.APIConfig) (replicate.PredictionInput, error) {
log.Println("This is high STT")
var HighSTTParams rep.HighSTTParams
err := r.ParseMultipartForm(10 << 20) // 10MB
if err != nil {
Expand Down
5 changes: 2 additions & 3 deletions packages/replicate/tts/handle_tts.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ func processMediumTTSInput(ctx context.Context, r *http.Request, cfg *config.API
return nil, fmt.Errorf("error parsing multipart form: %v", err)
}
MediumTTSParams = rep.MediumTTSParams{}.RealisticVoiceCloning()
_, audioFileHeader, err := r.FormFile("audio")
_, audioFileHeader, err := r.FormFile("song_input")
if err != nil {
return nil, fmt.Errorf("provide audio file: %v", err)
return nil, fmt.Errorf("provide song_input file: %v", err)
}
repFile, err := rep.RequestFileToReplicateFile(ctx, audioFileHeader, cfg.ReplicateAPIKey)
if err != nil {
Expand Down Expand Up @@ -154,7 +154,6 @@ func processMediumTTSInput(ctx context.Context, r *http.Request, cfg *config.API
return input, nil
}
func processHighTTSInput(ctx context.Context, r *http.Request, cfg *config.APIConfig) (replicate.PredictionInput, error) {
log.Println("This is High TTS")
var HighTTSParams rep.HighTTSParams
err := r.ParseMultipartForm(50 << 20) // 50MB
if err != nil {
Expand Down
Loading