Comments (5)
Hello @To3No7 ,
thanks for giving the API a spin. Not sure what exactly is going on here, but at least I do not think that we need the importlib
dependency at all. We currently just use it to parse the API version of the service.
Cheers, Markus
from aleph-alpha-client.
It seems that there is a change in version 3.10 of this library "Changed in version 3.10: importlib.metadata is no longer provisional." https://docs.python.org/3/library/importlib.metadata.html and that this functionality is taken over by importlib-metadata https://github.com/python/importlib_metadata , but I do not know how to program your usage of this to cope with various versions of python and these libraries.
Will you update aleph_alpha_client.py so that it no longer depend on this library?
from aleph-alpha-client.
This is my intention. If my current understanding is correct, we only actually use the version
type of this library to parse a version string of the http API in order to inform users that they may want to update the client in case the API has changed in a non backwards compatible manner.
Basically I think the use of this package can be replaced with a split
.
from aleph-alpha-client.
Sorry, I am in error. We use it to set the package version for User Agent header correctly. Still I think we can do without that dependency.
from aleph-alpha-client.
Hi @To3No7,
we removed our dependency on importlib.metadata
. A colleague just tested the latest release 1.4.2 in google colab and it worked. Please let us know, if you run into further problems.
from aleph-alpha-client.
Related Issues (12)
- List of available models and parameters HOT 2
- client.tokenizer producing wrong number of tokens HOT 2
- Migrate Q&A app from OpenAI to Aleph-Alpha HOT 1
- Consider using Pydantic as a dependency? HOT 1
- Aleph Alpha - Guardrails implementation HOT 2
- Getting a 403 whenever trying to use multimodal image prompting HOT 5
- client.qa not hardened against empty document list HOT 2
- API not accepting `pooling` to be `null` in Embedding function HOT 7
- Client not working in Google Colab due to python Versioning HOT 5
- DetokenizationResponse member "result" should be typed as str instead of Sequence[str] HOT 3
- Feature request, Image.from_image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aleph-alpha-client.