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

file structure is empty #60

Open
nfwyst opened this issue Jun 27, 2024 · 4 comments
Open

file structure is empty #60

nfwyst opened this issue Jun 27, 2024 · 4 comments

Comments

@nfwyst
Copy link

nfwyst commented Jun 27, 2024

there is no file generated, after i ran python3 maestro-anyapi.py

@verrol
Copy link

verrol commented Jun 30, 2024

Same for me and I'm using Gemini. It produces console test with file names, but it doesn't create any files in the directory.

Here is an example of console output for the file "order_service.go", but the file wasn't created:

Filename: order_service.go

package controllers

import (
    "ecommerce-app-backend/models"

    "gorm.io/gorm"
)

type OrderService interface {
    CreateOrder(order *models.Order) error
    GetOrdersByUser(userID uint, orders *[]models.Order) error
    // ... (Add more order service methods as needed)
}

type OrderServiceImpl struct {
    DB *gorm.DB
}

func (os *OrderServiceImpl) CreateOrder(order *models.Order) error {
    // ... Create the order in the database
    return os.DB.Create(order).Error
}

func (os *OrderServiceImpl) GetOrdersByUser(userID uint, orders *[]models.Order) error {
    // ... Retrieve all orders for the user from the database
    return os.DB.Where("user_id = ?", userID).Find(orders).Error
}

@deniercounter
Copy link

deniercounter commented Jul 8, 2024

Wow ... Is this still the case?

And this couldn't be solved with this hack either: #44 ?

@verrol
Copy link

verrol commented Jul 8, 2024

@deniercounter - Thanks for replying.

When I have some time, I will check out #44 and update accordingly.

@verrol
Copy link

verrol commented Jul 8, 2024

@deniercounter - I updated maestro-anyapi.py and I have a valid key in os.environ["GEMINI_API_KEY"], yet it died with invalid key error, even though it was working find and even generated a bunch of code on the console. Stil nothing in any file and then it failed with the invalid key error. So I not sure why the earlier steps picked up the key, but later on it didn't.

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

3 participants