File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 1212# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313# See the License for the specific language governing permissions and
1414# limitations under the License.
15- import os
16-
1715import pytest
1816
1917from nemoguardrails import RailsConfig
2018from tests .utils import TestChat
2119
22- OPENAI_KEY_ENV_VAR = "NG_OPENAI_API_KEY"
23- os .environ [OPENAI_KEY_ENV_VAR ] = "sk-svcacct-abcdef12345"
24-
2520config = RailsConfig .from_content (
2621 """
2722define user express greeting
3631 user express greeting
3732 bot express greeting
3833""" ,
39- yaml_content = f """
34+ yaml_content = """
4035 models:
4136 - type: main
4237 engine: openai
4338 model: gpt-3.5-instruct-turbo
44- api_key_env_var: { OPENAI_KEY_ENV_VAR }
4539 """ ,
4640)
4741
Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515import logging
16- import os
1716import unittest
1817
1918from nemoguardrails import RailsConfig
2019from tests .utils import TestChat
2120
22- OPENAI_KEY_ENV_VAR = "NG_OPENAI_API_KEY"
23- os .environ [OPENAI_KEY_ENV_VAR ] = "sk-svcacct-abcdef12345"
24-
2521colang_content = '''
2622 import core
2723 import passthrough
4844 user said "This is boring"
4945 '''
5046
51- yaml_content = f """
47+ yaml_content = """
5248colang_version: "2.x"
5349models:
5450 - type: main
5551 engine: openai
5652 model: gpt-3.5-turbo-instruct
57- api_key_env_var: { OPENAI_KEY_ENV_VAR }
5853 """
5954
6055
You can’t perform that action at this time.
0 commit comments