🧪4️⃣ test: level 3 fix no input

This commit is contained in:
Florian Hönicke
2023-05-02 14:08:36 +02:00
parent 8677649815
commit 06e9154f7e
2 changed files with 2 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ The implemented function and the test must not contain prototype or placeholder
The implemented function and the test must run in a docker container based on debian.
The implemented function and the test must not use libraries like Flask.
The implemented function and the test must not have a __main__ function.
The implemented function and the test must use gpt_3_5_turbo_api if the task requires understanding, generation, summarization, transformation, translation or classification of natural language or using any language model. Other language models are not allowed.'''
The implemented function and the test must use gpt_3_5_turbo_api if the task requires the processing of language (e.g., understanding, generation, summarization, transformation, translation, modification or classification). Other language models are not allowed.'''
template_generate_microservice_name = PromptTemplate.from_template(

View File

@@ -81,18 +81,11 @@ def test_generation_level_3(tmpdir):
os.environ['VERBOSE'] = 'true'
generator = Generator(
f'''The input is a stock symbol (e.g., AAPL for Apple Inc.).
1. Fetch stock data (open, high, low, close, volume) for the past 30 days using a financial data API (e.g., Alpha Vantage, Yahoo Finance, or any other API).
1. Fetch stock data (open, high, low, close, volume) for the past 30 days using a financial data API Yahoo Finance.
2. Calculate the average closing price over the 30 days.
3. Read a CSV file containing a list of stock symbols and their company names.
4. Find the input stock symbol in the CSV file and get the corresponding company name.
5. Generate a brief summary of the company's stock performance over the past 30 days, including the average closing price and the company name.
6. Return the summary as a string.
Example input: 'AAPL'
Example CSV file format:
symbol,company_name
AAPL,Apple Inc.
GOOGL,Alphabet Inc.
AMZN,Amazon.com, Inc.
''',
str(tmpdir) + 'microservice',
'gpt-3.5-turbo'