Skip to content

Commit

Permalink
lint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed May 23, 2024
1 parent 3ef6155 commit 92d0271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Run tests
if: matrix.python-version != '3.11'
run: poetry run pytest tests/ -k "not openai and not anthropic and not evals and not docs"
run: poetry run pytest tests/ -k "not openai and not anthropic and not evals and not docs and not gemini"
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Expand Down
5 changes: 3 additions & 2 deletions instructor/process_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from instructor.function_calls import OpenAISchema, openai_schema
from instructor.utils import merge_consecutive_messages
from openai.types.chat import ChatCompletion
from google.generativeai.types import HarmCategory, HarmBlockThreshold
from pydantic import BaseModel

import json
Expand Down Expand Up @@ -315,7 +314,9 @@ def handle_response_model(
+ "\n\n".join(openai_system_messages)
)

new_kwargs["system"] += f"""
new_kwargs[
"system"
] += f"""
You must only response in JSON format that adheres to the following schema:
<JSON_SCHEMA>
Expand Down

0 comments on commit 92d0271

Please sign in to comment.