Skip to main content

Librairie pour interagir avec l'API Olympia.

Project description

Marianne

Olympiabhub

Olympiabhub est une librairie Python pour interagir avec l'API Olympia.

Installation

Vous pouvez installer la librairie via pip :

pip install olympiabhub

Documentation

  1. Ajouter OLYMPIA_API_TOKEN à votre .env ou passer token en paramètre à OlympiaAPI

  2. Si vous devez utiliser un proxy, ajouter à votre .env la variable PROXY

Chat

Chat depuis Nubonyxia

from olympiabhub import OlympiaAPI
from dotenv import load_dotenv

load_dotenv()

model = OlympiaAPI(model)
reponse = model.ChatNubonyxia(prompt)

Chat depuis un environnement sans proxy

from olympiabhub import OlympiaAPI
from dotenv import load_dotenv

load_dotenv()

model = OlympiaAPI(model)
reponse = model.Chat(prompt)

Embeddings

Créer des embeddings pour une liste de textes :

model = OlympiaAPI(model)
embeddings = model.create_embedding(texts=["votre texte", "un autre texte"])

Liste des modèles disponibles

Obtenir la liste des modèles LLM

model = OlympiaAPI(model)
llm_models = model.get_llm_models()
print("Modèles LLM disponibles:", llm_models)

Obtenir la liste des modèles d'embedding

model = OlympiaAPI(model)
embedding_models = model.get_embedding_models()
print("Modèles d'embedding disponibles:", embedding_models)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

olympiabhub-0.0.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Olympiabhub-0.0.5-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file olympiabhub-0.0.5.tar.gz.

File metadata

  • Download URL: olympiabhub-0.0.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for olympiabhub-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c8c59300f91efccd68fb64811afd556c0ce80edcd05f3a03026132d885843ce5
MD5 496ef4d72911d3d6cef913f671c82b74
BLAKE2b-256 b4d26529e46d4caca1d1f8b309f01c172a438e62a554fa23e58fb26699a5cb94

See more details on using hashes here.

File details

Details for the file Olympiabhub-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: Olympiabhub-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for Olympiabhub-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d347f31562b7d1f473f7be817c1021dc5a259c5dfbc2b60dc635baf7e2bfa044
MD5 6e0f12afe6a7337d94124e6986f4510f
BLAKE2b-256 3b2083e79ef442edb4655bca6c7aeccecd968152197e02e95115a440df499200

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page