Giter Club home page Giter Club logo

Comments (10)

hfguo02 avatar hfguo02 commented on August 14, 2024 1

The selected model, GPT-3.5, cannot be used properly.

from ai-group-tabs.

GentlemanHu avatar GentlemanHu commented on August 14, 2024 1

Yes, maybe the config not saved if not close Options tab; after closing Options tab, my config works.

from ai-group-tabs.

hfguo02 avatar hfguo02 commented on August 14, 2024

image

from ai-group-tabs.

MichaelYuhe avatar MichaelYuhe commented on August 14, 2024

Did u try other models? can they work normally?

from ai-group-tabs.

GentlemanHu avatar GentlemanHu commented on August 14, 2024

Same here, all models not working

image

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.

GentlemanHu avatar GentlemanHu commented on August 14, 2024

Using openai alternative api, seems apiURL not read from options config.

image image

from ai-group-tabs.

MichaelYuhe avatar MichaelYuhe commented on August 14, 2024
image It should be working, can u check the network in the Network panel?

from ai-group-tabs.

GentlemanHu avatar GentlemanHu commented on August 14, 2024

no log in Network panel
image

from ai-group-tabs.

MichaelYuhe avatar MichaelYuhe commented on August 14, 2024

You need to check in service_worker console

from ai-group-tabs.

hfguo02 avatar hfguo02 commented on August 14, 2024

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)

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.