Comments (10)
The selected model, GPT-3.5, cannot be used properly.
from ai-group-tabs.
Yes, maybe the config not saved if not close Options tab; after closing Options tab, my config works.
from ai-group-tabs.
from ai-group-tabs.
Did u try other models? can they work normally?
from ai-group-tabs.
Same here, all models not working
Stack Trace
import{g as r}from"./utils.Xiu07ssm.js";async function m(n,e,o){const a=n.map(t=>({id:t.id,title:t.title,url:t.url})),s=e.map(t=>({type:t,tabIds:[]})),i=await r("model")||"gpt-3.5-turbo",c=await r("apiURL")||"https://api.openai.com/v1/chat/completions";try{return await Promise.all(a.map(async t=>{if(!t.url)return;const p=(await(await fetch(c,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`,"Api-Key":o},body:JSON.stringify({messages:[{role:"system",content:"You are a classificator"},{role:"user",content:`Based on the URL: "${t.url}" and title: "${t.title}", classify the browser tab type as one of the following: ${e.join(", ")}. Respond with only the classification keyword from the list.`}],model:i})})).json()).choices[0].message.content,l=e.indexOf(p);l!==-1&&s[l].tabIds.push(t.id)})),s}catch(t){return console.error(t),s}}async function f(n,e,o){try{const a=await r("model")||"gpt-3.5-turbo",s=await r("apiURL")||"https://api.openai.com/v1/chat/completions";return(await(await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`,"Api-Key":o},body:JSON.stringify({messages:[{role:"system",content:"You are a classificator"},{role:"user",content:`Based on the URL: "${n.url}" and title: "${n.title}", classify the browser tab type as one of the following: ${e.join(", ")}. Respond with only the classification keyword from the list.`}],model:a})})).json()).choices[0].message.content}catch(a){console.error(a)}}export{m as b,f as h};
from ai-group-tabs.
Using openai alternative api, seems apiURL not read from options config.
from ai-group-tabs.
from ai-group-tabs.
from ai-group-tabs.
You need to check in service_worker console
from ai-group-tabs.
I think found the reason,I created my own Assistants ChatGPT 3.5-turbo model on OpenAI and am verifying if my key works.
I'm not sure if there is a necessary connection, but it is currently working fine.
cc: @GentlemanHu
from ai-group-tabs.
Related Issues (20)
- 404 not found
- Create a telegram bot notifying new commits and releases HOT 2
- Enhancement of AI Grouping Accuracy and User Experience HOT 1
- Add keyboard shortcuts for grouping tabs and swich auto-group on/off status
- Feature: ungroup all tabs in popup
- Feature: Customize colors for types HOT 8
- [feature request]: Add caching for request results HOT 3
- 第一次使用的时候报错
- [feature request]: Add filtering options, some URLs do not need to be included in the grouping strategy. HOT 13
- 分组后的效果不是很好 HOT 15
- 分组效果不好 HOT 5
- Sync with groups created manually HOT 4
- 使用基于本地计算的实现
- Search for a open tab
- Extenstion doesn't work HOT 13
- [feature] Do not update a tab if it's updated with the same root domain
- 可以加一个一键收起所有分组的功能
- [BUG] : System is not checking whether the API key is Valid or not HOT 4
- 请问能支持Gemini Pro API吗? HOT 5
- [feature request]: 将相同的域名合并到一个标签
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 ai-group-tabs.