Skip to content

Feature/anthropic api#35

Merged
jpcompartir merged 57 commits intomainfrom
feature/anthropic_api
Dec 4, 2025
Merged

Feature/anthropic api#35
jpcompartir merged 57 commits intomainfrom
feature/anthropic_api

Conversation

@jpcompartir
Copy link
Copy Markdown
Owner

Fairly hefty re-factor with a big rebase for 3 braches/features rolled together

  • oai_*_df funcs for parquet writing
  • error handling and propagation throughout all requests
  • handling of successes and failures now that errors propagate through httr2
  • start of anthropic API + structured outputs (note it's beta in the Ant api so only some models supported)
  • .error_msg > .error_message (consistency)
  • chunking vocab across chunks functions and hf_embed_chunks

update tests
export ant_build_messages_request
add schema tests for ant_build_messages_request
… this to vignette too)

add more tests to ant_build_messages_request
bump version
update news and _pkgdown.yml
push planning doc for refactor
and refactor chunk function to avoid confusing batch_size naming
fix small bug in the calling of .handle_output_filename inside hf_embed_chunks/df
update todos/news
update _pkgdown.yml with hf_embed_chunks
pass output_file to hf_embed_chunks from inside hf_embed_df to fix the filenmae issue
…r debugging people's code/errors (including my own)
add max_length to hf_embed_df and hf_embed_df
move hf_classify_df over to hf_classify_chunks not hf_classify_batch

remove old comments from hf_embed_df
… is to turn on 'AUTO_TRUNCATE' in the Set up of the endpoint
build rd files
add comma in embed test
add test/dev docs to .Rbuildignore
switch to output_dir =  for oai_complete_chunks & oai_complete_df
add id_col_name to oai_complete_chunks
fix docs
output_dir arg
switch to chunk vocab
add oai_embed_chunks to _pkgdown.yml
update README and build
…s well as the .error and .error_msg, for easier filtering

Can't simply put into .error because we can't have numeric with FALSE (when no .error) due to single-typed vecs in R
Merge remote-tracking branch 'origin/dev' into feature/anthropic_api

# Conflicts:
#	DESCRIPTION
#	NEWS.md
#	R/hf_classify.R
#	R/hf_embed.R
#	R/openai_completions.R
#	README.Rmd
#	README.md
#	_pkgdown.yml
#	man/oai_complete_chunks.Rd
#	man/oai_complete_df.Rd
#	tests/testthat/test-hf_classify.R
#	tests/testthat/test-hf_embed.R
#	todos.qmd
…actor across oai_* funcs and hf_* funcs with the changes to basee_request (which ant doesn't use due to auth differences)
…ncs which check the httr2 request was successful/not
@jpcompartir jpcompartir merged commit 0498257 into main Dec 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant