Skip to content

metered/metered-python-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

login

import httpimport

with httpimport.github_repo('metered', 'metered-python', ref='main'):
  import metered
  metered.auth.login()

  client = metered.client("text-embedding-all-minilm-l6-v2.metered.app")

request

import httpimport

with httpimport.github_repo('metered', 'metered-python', ref='main'):
  import metered

  client = metered.client("text-embedding-all-minilm-l6-v2.metered.app")

client.request(
    query='''query Q($texts: [String!]!) {
      embed(
        texts: $texts,
      ) {
        elements {
          embedding
        }
      }
    }
    ''',
    variables={"texts": ["hi"]},
)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages