gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

ГигаЧат

Open den47999 opened this issue 11 months ago • 7 comments

Добрый день:) в проект можно добавить модель GigaChat https://developers.sber.ru/docs/ru/gigachat/api/reference/rest/gigachat-api в ваш проект? данная модель модель GigaChat может кроме текста рисовать используя Kandinsky 3.0

den47999 avatar Mar 16 '24 13:03 den47999

GigaChat was added today, Kandinsky 3.0 is not yet

в проект можно добавить модель GigaChat

ComRSMaster avatar Mar 16 '24 20:03 ComRSMaster

чат нарисовал картинку но не отображает эту картинку, где она тогда хранится? Screenshot_1

den47999 avatar Mar 17 '24 04:03 den47999

подскажите пожалуйста как мне добавить в рабочие модели гига чат? Screenshot_1

den47999 avatar Mar 17 '24 05:03 den47999

подскажите как можно настроить температуру и максимальное количество токенов? пример: Screenshot_2

den47999 avatar Mar 17 '24 05:03 den47999

подскажите я установил версию gpt4free-0.2.5.4 но у меня отображается Screenshot_1 как настроить что бы версии совпадали?

den47999 avatar Mar 17 '24 11:03 den47999

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Mar 25 '24 00:03 github-actions[bot]

Кто сможет мне помочь?

den47999 avatar Mar 25 '24 01:03 den47999

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Apr 02 '24 00:04 github-actions[bot]

Чтобы тебе тут ответили, пиши на английском

TheSashaDev avatar Apr 08 '24 07:04 TheSashaDev

Я знаю русский язык. Говори в чём проблема.

Anonymous6598 avatar Apr 08 '24 08:04 Anonymous6598

Сделай отдельный класс, а в нём добавь url адрес гига чата.

Anonymous6598 avatar Apr 08 '24 08:04 Anonymous6598

И про печеньки не забудь

Anonymous6598 avatar Apr 08 '24 08:04 Anonymous6598

https://g4f.mintlify.app/docs/get-started/introduction документация в помощь. Вкладка local

Anonymous6598 avatar Apr 08 '24 08:04 Anonymous6598

А картинки сохраняются в виде юрл адреса, переходя к которому ты увидишь картинку.

Anonymous6598 avatar Apr 08 '24 08:04 Anonymous6598

У меня так было с бингом и гемини

Anonymous6598 avatar Apr 08 '24 08:04 Anonymous6598

from g4f.local import LocalClient

client   = LocalClient() # в терминале напиши `pip install -U g4f[local]`
response = client.chat.completions.create(
    model    = 'orca-mini-3b', # название большой языковой модели
    messages = [{"role": "user", "content": "hi"}],
    stream   = True
)

for token in response:
    print(token.choices[0].delta.content or "")

Anonymous6598 avatar Apr 08 '24 08:04 Anonymous6598

И ещё, обновись до 0.2.8.2. А ты в какой версии питона установил?

Anonymous6598 avatar Apr 08 '24 09:04 Anonymous6598

@Anonymous6598 Please do not use Russian, Google Translate (DeepL or even sometimes Yandex) are bad in translation of some terminology.

ZhymabekRoman avatar Apr 09 '24 16:04 ZhymabekRoman

Alright, I apologize for using Russian. I just wanted to help. If @den47999 doesn't know English, how will he understand me then?

Anonymous6598 avatar Apr 09 '24 16:04 Anonymous6598

I'm not a programmer and don't understand much about writing code so I asked for help:)

den47999 avatar Apr 10 '24 02:04 den47999

@den47999, are you system administrator?

Anonymous6598 avatar Apr 10 '24 07:04 Anonymous6598

no :) I'm a simple user :)

den47999 avatar Apr 10 '24 08:04 den47999

Did it help

Anonymous6598 avatar Apr 10 '24 10:04 Anonymous6598

No, I need the code ready to go or a step-by-step demonstration.

den47999 avatar Apr 10 '24 11:04 den47999

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Apr 20 '24 00:04 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar Apr 27 '24 00:04 github-actions[bot]