Skip to content

Get Model return 400:GetModelRequest.name: unexpected model name format #3

@akjava

Description

@akjava

#V1
seems api not support yet.technically there are only one model

Success

gemini-pro
{ "name": "models/gemini-pro", "version": "001", "displayName": "Gemini 1.0 Pro", "description": "The best model for scaling across a wide range of tasks", "inputTokenLimit": 30720, "outputTokenLimit": 2048, "supportedGenerationMethods": ["generateContent", "countTokens"], "temperature": 0.9, "topP": 1, "topK": 1 }

gemini-pro-vision
{ "name": "models/gemini-pro-vision", "version": "001", "displayName": "Gemini 1.0 Pro Vision", "description": "The best image understanding model to handle a broad range of applications", "inputTokenLimit": 12288, "outputTokenLimit": 4096, "supportedGenerationMethods": ["generateContent", "countTokens"], "temperature": 0.4, "topP": 1, "topK": 32 }

embedding-001
{ "name": "models/embedding-001", "version": "001", "displayName": "Embedding 001", "description": "Obtain a distributed representation of a text.", "inputTokenLimit": 2048, "outputTokenLimit": 1, "supportedGenerationMethods": ["embedContent", "countTextTokens"] }

return code 400

gemini-1.0-pro,gemini-1.0-pro-001,gemini-1.0-pro-latest
{ "code": 400, "message": "* GetModelRequest.name: unexpected model name format\n", "status": "INVALID_ARGUMENT" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions