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.6.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.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: olympiabhub-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 c5f2d3a052c9891691768d4c7da9927b05c7eade856069bb578c1979b639c343
MD5 ed20a5de76a9d71a87f76ac5c4dcb290
BLAKE2b-256 55c2e14d305dc6995d1cd5f1c232e244af0400bb414fb91796ff8de5e0afb3c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Olympiabhub-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ee470042c0423d77c53e27903dc67e7c015b298acbfdaac734e32e2f04b4461d
MD5 8008fa9669e07ae01597a50e89d76602
BLAKE2b-256 6ee731609a2912c61800f8584f43ef20fac656c120985c9f7753edd41ade71da

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