8000 Enabled custom API key for custom OpenAI API by Jasonqi146 · Pull Request #154 · sotopia-lab/sotopia · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enabled custom API key for custom OpenAI API #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Conversation

Jasonqi146
Copy link
Member
@Jasonqi146 Jasonqi146 commented Jul 24, 2024

Closes #152

📑 Description

Enabled setting custom API key for custom OpenAI API by environment variable. Setting the "api_key" parameter is equivalent to setting the header "Authorization: Bearer $CUSTOM_API_KEY" in the curl request.

The addition of a custom API key should fulfill the functionality of CompanyAPIChat in #152.

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed
  • Branch name follows type/descript (e.g. feature/add-llm-agents)
  • Ready for code review

ℹ Additional Information

@Jasonqi146 Jasonqi146 requested a review from ProKil July 24, 2024 20:57
Copy link
codecov bot commented Jul 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.75%. Comparing base (2d90284) to head (150049d).

@@            Coverage Diff             @@
##             main     #154      +/-   ##
==========================================
- Coverage   60.78%   60.75%   -0.04%     
==========================================
  Files          55       55              
  Lines        2790     2790              
==========================================
- Hits         1696     1695       -1     
- Misses       1094     1095       +1     
Files Coverage Δ
sotopia/generation_utils/generate.py 49.62% <ø> (ø)

... and 1 file with indirect coverage changes

@ProKil ProKil merged commit 0f57997 into main Jul 24, 2024
8 checks passed
@ProKil ProKil deleted the feature/custom_openai branch July 26, 2024 02:41
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.

[FEAT]: Custom OpenAI API Invocation Method
2 participants
0