Skip to content

This repo's client is either not working with 3.12/3.13 of python, or it's just over-all broken #91

@the15thwiseone

Description

@the15thwiseone

I was following a tutorial which used contextual ai as their agent for making a simple RAG.

%%writefile .env
CONTEXTUAL_API_KEY = 'api-key'

from contextual import ContextualAI
import os

API_KEY = os.envget('CONTEXTUAL_API_KEY')

client = ContextualAI(api-key = API_KEY)

the above all works.
datastore_name = 'My datastore'
datastores = client.datastores.list( )
result = client.datastores.create( name = datastore_name)

The above client calls DO NOT work and they produce a 403 forbidden in jupyter notebook throwback. Looking at contextual AI it says "Never used" when it comes to the API.

I also contacted contextual AI and asked them 'why you do this' but it still pionts to something being wrong, since the base client call doesn't break anything until you attempt to use something from the .api file.

Something just isn't working, and it might be the fact that newer versions of python is derpy. I'm gonna try writing a script in python=3.11. But o therwise this has forced me to find an alternative to complete the tutorial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions