Skip to content

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

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" }

Activity

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

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