Coder Social home page Coder Social logo

gpt-investor's People

Contributors

mshumer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gpt-investor's Issues

Can't open HyperWrite

Dear Author, why I can't open HyperWrite?
This website has been loading continuously.

compare_companies function is never called

Love your work on this. Just be aware that compare_companies is never called, neither is get_claude_comps_analysis and final_analysis receives an empty dictionary. This results in the ranking at the often not working, as Opus -rightfully- complains about financial data missing.

Claude meme coin analyst

I have tried to use this notebook. But I see this error below. Any ideas why?

Analyzing the following coins: ['Dogecoin', 'Shiba Inu', 'Floki']

Analyzing Dogecoin for 2024-04-03...
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
[<ipython-input-3-9794b9bbc853>](https://localhost:8080/#) in <cell line: 139>()
    147 
    148     # Select relevant URLs
--> 149     relevant_urls = select_relevant_urls(search_results)
    150 
    151     # Get article text from relevant URLs

[<ipython-input-3-9794b9bbc853>](https://localhost:8080/#) in select_relevant_urls(search_results)
     31     }
     32     response = requests.post("https://api.anthropic.com/v1/messages", headers=headers, json=data)
---> 33     response_text = response.json()['content'][0]['text']
     34     numbers = ast.literal_eval(response_text)
     35     relevant_indices = [int(num) - 1 for num in numbers]

KeyError: 'content'

Industry?

What names go inside that box? And why can't we have all industries?

Btw, if I type "Health Care" for example it gives me error.

Industry Examples

Can you give us examples of what industries this is expecting and in what formats?
Thanks!!

Anthropic SDK available for python

Not set up right now to make it a pull request, but for those who care: You can use the anthropic python sdk now.

!pip install -U anthropic
import anthropic

client = anthropic.Anthropic(
    api_key=ANTHROPIC_API_KEY,
)


def ask_claude(system_prompt, messages, model="claude-3-opus-20240229", max_tokens=2000):
    try:
        message = client.messages.create(
            model=model,
            max_tokens=max_tokens,
            temperature=0.5,
            system=system_prompt,
            messages=messages
        )
        # count_tokens(model=model, in_tokens=message.usage.input_tokens, out_tokens=message.usage.output_tokens)
    except anthropic.APIConnectionError as e:
        print("The server could not be reached")
        print(e.__cause__)  # an underlying Exception, likely raised within httpx.
    except anthropic.RateLimitError as e:
        print("A 429 status code was received; we should back off a bit.")
    except anthropic.APIStatusError as e:
        print("Another non-200-range status code was received")
        print(e.status_code)
        print(e.response)
        
    return message.content[0].text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.