Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Inconsistency in how model name is supplied in the library. #466

Open

Description

@LindaLawton

Description of the feature request:

Embedings requiers models/

result = genai.embed_content(
    model="models/embedding-001",
    content="What is the meaning of life?",
    task_type="retrieval_document",
    title="Embedding of single string")

# 1 input > 1 vector output
print(str(result['embedding'])[:50], '... TRIMMED]')

All other methos do not require it

  model = genai.GenerativeModel('gemini-1.5-flash')

What problem are you trying to solve with this feature?

Consistency

Any other information you'd like to share?

#justsaying

Activity

  1. MarkDaoust commented on Jul 24, 2024

    @MarkDaoust
    Collaborator

    Right, thanks.

    @shilpakancharla IIRC you did the embedding implementation, could you fix this?

  2. LindaLawton commented on Jul 25, 2024

    @LindaLawton
    Author

    I'm happy to try to implement it if you like.

  3. shilpakancharla commented on Jul 31, 2024

    @shilpakancharla
    Contributor

    HI @LindaLawton , please feel free to submit an implementation.

  4. bhakarboy01 commented on Mar 15, 2025

    @bhakarboy01

    @MarkDaoust @shilpakancharla @LindaLawton I have made the code consistent with the model naming without "model/" prefix in genai.embed_content function. PR #718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions