Comments (12)
当天的数据要在晚上才能更新,你换个request
from data-copilot.
输出可孚医疗上周三的股价
2023-07-07 19:13:54
Traceback (most recent call last):
File "/root/Data-Copilot/main.py", line 381, in <module>
output, image, df , output_result = run(instruction, send_chat_request_Azure = openai_call, openai_key=openai_key, api_base='', engine='')
File "/root/Data-Copilot/main.py", line 215, in run
call_steps, _ = response.split('###')
ValueError: not enough values to unpack (expected 2, got 1)
from data-copilot.
请不要用周三这种词,因为时区问题,我们的周三就是美国的周二。这样会引起LLMs误会。请直接用日期,例如输出可孚医疗7月4日股价
from data-copilot.
===============================Intent Detecting===========================================
2023-07-07 21:10:24
new_instruction: 输出可孚医疗2023年7月4日的股价
===============================Task Planing===========================================
2023-07-07 21:10:26
stock_task : 获取可孚医疗20230704的股价数据
visualization_task : 输出可孚医疗20230704的股价
===============================Tool select and using Stage===========================================
2023-07-07 21:10:29
Traceback (most recent call last):
File "/root/Data-Copilot/main.py", line 381, in <module>
output, image, df , output_result = run(instruction, send_chat_request_Azure = openai_call, openai_key=openai_key, api_base='', engine='')
File "/root/Data-Copilot/main.py", line 215, in run
call_steps, _ = response.split('###')
ValueError: not enough values to unpack (expected 2, got 1)
from data-copilot.
version: 2409228
Python 3.10.0
WSL: 1.2.5.0
OS: Ubuntu 20.04 LTS
from data-copilot.
我这边测试过是没问题。你到demo里试试应该也是可以的。你可以查下381行输出response是啥
from data-copilot.
call_steps, _ = response.split('###') 这句话是把openai回复的response取出来解析,你看看它有没有内容
from data-copilot.
result_buffer=> {}
output_buffer=> ['result1']
Traceback (most recent call last):
File "/root/Data-Copilot/main.py", line 388, in <module>
output, image, df , output_result = run(instruction, send_chat_request_Azure = openai_call, openai_key=openai_key, api_base='', engine='')
File "/root/Data-Copilot/main.py", line 283, in run
Previous_result[rename] = result_buffer[output_name][1]
KeyError: 'result1'
from data-copilot.
看起来 prompt 的输出限制不太稳定,有时候能进到
Line 291 in 2409228
有时候在
Line 277 in 2409228
result_buffer=> {'result1': ( stock_code trade_date open high low close ... symbol stock_name area industry market list_date
0 301087.SZ 20230705 64.681059 66.18079 64.39212 65.424045 ... 301087 可孚医疗 湖南 医疗保健 创业板 20211025
[1 rows x 18 columns], '可孚医疗20230705的股价数据')}
output_buffer=> ['result1']
response =>
2023-07-07 22:04:00
step1={
"arg": ["input1"],
"function": "print",
"output": "result1",
"description": "输出可孚医疗20230705的股价"
}
response end
出现错误:
Traceback (most recent call last):
File "/root/Data-Copilot/main.py", line 388, in <module>
output, image, df , output_result = run(instruction, send_chat_request_Azure = openai_call, openai_key=openai_key, api_base='', engine='')
File "/root/Data-Copilot/main.py", line 298, in run
call_steps, _ = response.split('###')
ValueError: not enough values to unpack (expected 2, got 1)
from data-copilot.
我使用的是 OpenAI 的 key,tushare 积分 120,每日股票数据接口应该是能用的,但是没一次能调用成功。
from data-copilot.
咦 按理说这么简单的request应该还蛮稳定。我刚自己试了几次都正常。你加我17681825398
from data-copilot.
获取的stock_data列名好像和代码里面的没有对齐 这个是什么原因
from data-copilot.
Related Issues (20)
- 请问可以链接到开源模型吗 HOT 1
- How to create new tools(functions) HOT 4
- 能否连接本地数据 HOT 2
- How is this different from openai's function call HOT 2
- 未响应 HOT 2
- 报错:KeyError: 'arg' HOT 1
- 图像显示不出来 HOT 4
- 自己定义函数,让llm选择是这样吗? HOT 6
- 用Langchain的agent可以实现类似的流程吗? HOT 1
- 怎么修改azure调用改为one api呢
- TuShare 的token,账户积分不够 大家都怎么解决的哈? HOT 2
- app 启动输入问题后报错截图如下 HOT 8
- 您好,在论文中提到,使用gpt-4 对接口设计,请问这块如何使用gpt实现的呢? HOT 2
- 请问模型设计的接口代码是如何实现的?我应当如何让项目调取本地数据? HOT 3
- 本地方式启动解码报错 HOT 3
- 请教一下gradio的版本是多少呀 requeirment里面没有
- 在哪里替换openi的api-key呀 HOT 1
- 用哪个版本的python? HOT 2
- 咨询下企业内部数据报表分析工具的思路
- Error:'MyThread' object has no attribute 'result' HOT 6
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 data-copilot.