fatih kadir akın(@fkadev) 's Twitter Profile Photo

Diyelim ki bir ChatGPT uygulaması yapıyoruz ve kullanıcı '25 dolar kaç ₺ eder' diye sordu. Bu durumda back-end'imizde 'currency_rate(symbol: string)' olduğunu düşünelim. Yani `currency_rate('USDTRY')` çağırınca, bize 23.60 dönen bir fonksiyonumuz var.

Bu fonksiyonumuzu bir JSON…

Diyelim ki bir ChatGPT uygulaması yapıyoruz ve kullanıcı '25 dolar kaç ₺ eder' diye sordu. Bu durumda back-end'imizde 'currency_rate(symbol: string)' olduğunu düşünelim. Yani `currency_rate('USDTRY')` çağırınca, bize 23.60 dönen bir fonksiyonumuz var.

Bu fonksiyonumuzu bir JSON…
account_circle
David(@dzhng) 's Twitter Profile Photo

Not to overhype the new OpenAI API's too much, it looks like it can still hallucinate invalid JSON & parameters.

I thought there would be some sort of built in API lv guardrails to auto enforce JSON shape & parameters. You'll still need to implement application side validation.

Not to overhype the new OpenAI API's too much, it looks like it can still hallucinate invalid JSON & parameters.

I thought there would be some sort of built in API lv guardrails to auto enforce JSON shape & parameters. You'll still need to implement application side validation.
account_circle
へっくす(@codehex) 's Twitter Profile Photo

今話題の OpenAI のアップデートで利用可能になった Function calling の何が嬉しいかを書きました!

GPT-4, GPT-3.5 の API を利用して JSON を出力する (Function calling)|codehex zenn.dev/codehex/articl…

account_circle
fatih kadir akın(@fkadev) 's Twitter Profile Photo

Of of of of güncellemeye gel, muhteşem. Artık OpenAI API’de “function” tanımlanabiliyor. Tanımladığınız fonksiyonları prompt içinden nasıl çağıracağını kendisi belirliyor ve size function_call türünde bir message türü hazırlayıp dönüyor. Bunu kendiniz backend’inizde…

Of of of of güncellemeye gel, muhteşem. Artık OpenAI API’de “function” tanımlanabiliyor. Tanımladığınız fonksiyonları prompt içinden nasıl çağıracağını kendisi belirliyor ve size function_call türünde bir message türü hazırlayıp dönüyor. Bunu kendiniz backend’inizde…
account_circle
Min Choi(@minchoi) 's Twitter Profile Photo

1/ Function Call

Developers, get ready for next-level integration.

Latest GPT-4 and GPT-3.5-turbo can now return JSON objects for function calls, opening up endless possibilities for interaction with APIs and tools.

1/ Function Call

Developers, get ready for next-level integration.

Latest GPT-4 and GPT-3.5-turbo can now return JSON objects for function calls, opening up endless possibilities for interaction with APIs and tools.
account_circle
Francis Jervis(@f_j_j_) 's Twitter Profile Photo

haha wow gpt-3.5-turbo-0613 has a serious tendency to hallucinate when you require a param in JSON and it isn't present in the input

haha wow gpt-3.5-turbo-0613 has a serious tendency to hallucinate when you require a param in JSON and it isn't present in the input
account_circle
Kyle McDonald(@kcimc) 's Twitter Profile Photo

yep, it works. here is an example of extracting structured data from an LAPD newsroom article. seems like it needs fewer tokens to get the same quality of results. gist.github.com/kylemcdonald/d… left: input, right: output

yep, it works. here is an example of extracting structured data from an LAPD newsroom article. seems like it needs fewer tokens to get the same quality of results. gist.github.com/kylemcdonald/d… left: input, right: output
account_circle
Shota Nukumizu(@Nameless_SN) 's Twitter Profile Photo

【ザックリ解説】JSON

[要点]
✅もとはJavaScriptのデータの一部
✅主にWeb API(REST, GraphQL)のデータ交換で使われるデータ交換のフォーマット
✅名前と値のペアで表現する
✅多種多様なプログラミング言語に対応している

【ザックリ解説】JSON

[要点]
✅もとはJavaScriptのデータの一部
✅主にWeb API(REST, GraphQL)のデータ交換で使われるデータ交換のフォーマット
✅名前と値のペアで表現する
✅多種多様なプログラミング言語に対応している

#駆け出しエンジニアと繋がりたい #今日の積み上げ #プログラミング
account_circle
ML_Bear(@MLBear2) 's Twitter Profile Photo

これめちゃくちゃいい事例だなと思いました。OpenAI Embedding API を使って論文をベクトル化し、Streamlitから検索できるUIを作られたとのこと。また、論文の要旨表示のためにFunction Call を利用してjsonを確実に生成したとのこと。面白い〜!

zenn.dev/turing_motors/…

account_circle
Andrea Marco Sartori(@cerbero90) 's Twitter Profile Photo

📯 Finally released JSON Parser, a framework-agnostic package that can parse JSON of any dimension and from any source in a memory-efficient way

It also provides pointers to extract only the necessary sub-trees instead of reading all the JSON 🎯

github.com/cerbero90/json…

📯 Finally released JSON Parser, a framework-agnostic #PHP package that can parse JSON of any dimension and from any source in a memory-efficient way

It also provides pointers to extract only the necessary sub-trees instead of reading all the JSON 🎯

github.com/cerbero90/json…
account_circle
Simon Willison(@simonw) 's Twitter Profile Photo

This is a really clever way of using the new OpenAI Functions mechanism, without actually executing any functions. Instead, Kyle is using it to provide as schema describing data to scrape from an article - then letting a ChatGPT API call return that exact scraped data as JSON.

account_circle
anton(@abacaj) 's Twitter Profile Photo

I used to write Java at my prev job, I feel bad for the Java software engineers. Environment so heavy, war files? And frameworks so heavy, it’s just http like an endpoint that takes some input and returns some JSON. Everything is a subclass of a subclass, GC sucks, compiling slow

account_circle
jason(@jxnlco) 's Twitter Profile Photo

Some tips on using function calls in the new OpenAI release:

It's really a naming issue where a function call conflates structured json with tool use.

I'm going to got through some examples of just using function calls to extract json w/ Pydantic

account_circle
kache (λacine)(@yacineMTB) 's Twitter Profile Photo

the things you need to understand about people getting excited about AI who are building things are actually just excited that they can transform tweets into JSON

account_circle