Skip to content

[Bug]: Unable to generate script – "No provider found for model" error #791

@MigrantBirdd

Description

@MigrantBirdd

问题描述 | Current Behavior

Hi there,
First of all, thank you for building this project. I’ve been testing it for the past day to create a short video clip using the API, but unfortunately I haven’t been able to get a working result yet. I’d really appreciate your help or guidance. Here's a full list of the issues I’ve encountered so far:
Issues encountered:

  1. Virtual environment activation failed
    o Error: The system cannot find the path specified
    o Cause: The env folder was located one level above the working directory
    o Fix: Used ..\env\Scripts\activate to activate successfully ✅
  2. Model provider not recognized
    o Error: No provider found for model: Model
    o Request sent:
    o {
    o "title": "The build a FastAPI project",
    o "engine": "g4f",
    o "duration": 60
    o }
    o Response:
    o {
    o "status": 200,
    o "success": false,
    o "data": null,
    o "code_script": "Error: No provider found for model: Model"
    o }
    o It seems the backend doesn’t recognize "g4f" as a valid engine or model provider.
  3. No script returned
    o Even though the request was accepted (status 200), the response contains data: null and no generated script.
  4. Mismatch between engine name and backend support
    o The engine name "g4f" was used in the request, but the backend may only support "Model" or lacks a handler for "g4f".
    Context:
    • Server runs successfully and /docs loads without issue
    • Requests tested via Swagger UI and curl
    • Goal: Generate a short script for a video clip using the API
    • If you need logs or code snippets, I’m happy to share
    Would you be able to confirm whether "g4f" is supported, or guide me on how to properly configure the model provider? I’d love to get this working and showcase it in a short IG video.
    Thanks in advance for your time and help!

重现步骤 | Steps to Reproduce

Here's a full list of the issues I’ve encountered so far:
Issues encountered:

  1. Virtual environment activation failed
    o Error: The system cannot find the path specified
    o Cause: The env folder was located one level above the working directory
    o Fix: Used ..\env\Scripts\activate to activate successfully ✅
  2. Model provider not recognized
    o Error: No provider found for model: Model
    o Request sent:
    o {
    o "title": "The build a FastAPI project",
    o "engine": "g4f",
    o "duration": 60
    o }
    o Response:
    o {
    o "status": 200,
    o "success": false,
    o "data": null,
    o "code_script": "Error: No provider found for model: Model"
    o }
    o It seems the backend doesn’t recognize "g4f" as a valid engine or model provider.
  3. No script returned
    o Even though the request was accepted (status 200), the response contains data: null and no generated script.
  4. Mismatch between engine name and backend support
    o The engine name "g4f" was used in the request, but the backend may only support "Model" or lacks a handler for "g4f".
    Context:
    • Server runs successfully and /docs loads without issue
    • Requests tested via Swagger UI and curl
    • Goal: Generate a short script for a video clip using the API
    • If you need logs or code snippets, I’m happy to share
    Would you be able to confirm whether "g4f" is supported, or guide me on how to properly configure the model provider? I’d love to get this working and showcase it in a short IG video.
    Thanks in advance for your time and help!

错误日志 | Error Logs

Here's a full list of the issues I’ve encountered so far:
Issues encountered:

  1. Virtual environment activation failed
    o Error: The system cannot find the path specified
    o Cause: The env folder was located one level above the working directory
    o Fix: Used ..\env\Scripts\activate to activate successfully ✅
  2. Model provider not recognized
    o Error: No provider found for model: Model
    o Request sent:
    o {
    o "title": "The build a FastAPI project",
    o "engine": "g4f",
    o "duration": 60
    o }
    o Response:
    o {
    o "status": 200,
    o "success": false,
    o "data": null,
    o "code_script": "Error: No provider found for model: Model"
    o }
    o It seems the backend doesn’t recognize "g4f" as a valid engine or model provider.
  3. No script returned
    o Even though the request was accepted (status 200), the response contains data: null and no generated script.
  4. Mismatch between engine name and backend support
    o The engine name "g4f" was used in the request, but the backend may only support "Model" or lacks a handler for "g4f".
    Context:
    • Server runs successfully and /docs loads without issue
    • Requests tested via Swagger UI and curl
    • Goal: Generate a short script for a video clip using the API
    • If you need logs or code snippets, I’m happy to share
    Would you be able to confirm whether "g4f" is supported, or guide me on how to properly configure the model provider? I’d love to get this working and showcase it in a short IG video.
    Thanks in advance for your time and help!

Python 版本 | Python Version

last

操作系统 | Operating System

win

MoneyPrinterTurbo 版本 | Version

last

补充信息 | Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions