mshumer / gpt-investor Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Dear Author, why I can't open HyperWrite?
This website has been loading continuously.
To not limit oneself with claude, extending support to Open AI too
raised PR for it
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.
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'
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.
Can you give us examples of what industries this is expecting and in what formats?
Thanks!!
To also include Live search to get latest news on the indexes
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.